c++ - Can't compile OpenGL project under OSX -


there's opengl project have work on course attending. there link errors due glew. after research, found out on osx glew not necessary.

i included following headers.

//#include "cl/cl_gl.h" #include <opengl/glu.h> #include <opengl/gl.h> //#include <opengl/glext.h>  //#include <glut/glut.h> 

but still getting compile errors of following kind:

  use of undeclared identifier 'gl_texture_buffer_ext'     glbindtexture(gl_texture_buffer_ext, 0);                   ^ 

where on osx glenum gl_texture_buffer_ext resp. gl_texture_buffer defined?

the ext variant defined in glext.h or headers come or generated various gl extenstion loaders. actual gl_texture_buffer enum defined in opengl/gl3.h. on osx, modern gl part of os, , can directly link modern gl funtions. however, still recommend using gl loader, portability reasons.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -