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

Shader のコンパイルエラーを取得

OGLplus で Shader のコンパイルに失敗した場合、Comple() 時に例外(CompileError)が飛んできます。 [ソース] #include <vector> #include <iostream> #define GL_VERSION_4_1 1 #include <GL/glew.h> #include <oglplus/gl.hpp> #include <oglplus/context.hpp> #include <oglplus/shader.hpp> #include <GL/Glut.h> int main(int argc, char *argv[]){ n…</gl/glut.h></oglplus/shader.hpp></oglplus/context.hpp></oglplus/gl.hpp></gl/glew.h></iostream></vector>