2011-10-29から1日間の記事一覧

OGLplus を使ってシェーダで遊んでみた

実行時にシェーダファイルをリロードできるようにして遊んでみました。 [main.cpp] #include <vector> #include <GL/glew.h> #include <oglplus/gl.hpp> // OGLplus 0.5.0 以降だと near far を undef しておかないと動かない #undef near #undef far //#include <oglplus/all.hpp> #include <oglplus/context.hpp> #include <oglplus/buffer.hpp> #include </oglplus/buffer.hpp></oglplus/context.hpp></oglplus/all.hpp></oglplus/gl.hpp></gl/glew.h></vector>