c++ - OpenGL vertex buffer objects on windows-how run it? qt windows -
i'm trying use vbo create terrain heightmap, don't know should include project or headers use. i'm using qt , os windows 7. when want use glgenbuffers(1, &vboid); throws error: "glgenbuffers not declared in scope"
vbo not part of opengl core until specific version , on. can make cumbersome access it. developers use library glew resolve lookup of extensions vbo.
another possibility use qt functionality, described here: http://entropologygames.wordpress.com/2009/10/31/howto-use-vertex-buffer-objectsvbo-with-opengl-qt/
in case suggest use qglbuffer (qt 4.7 , up), nicely encapsulates vbo functionality. http://qt-project.org/doc/qt-4.8/qglbuffer.html
Comments
Post a Comment