c++ - opengl 3.3 / glew 1.9 VBO support returns false -


i've built simple opengl window , checked it's support. support returned:

  • glew: 1.9.0

  • opengl: 3.3.0

the problem i'm having due creating shapes (vbo). while creating shape based off of tutorial, couldn't image (a simple triangle) display screen. way other way achieve using immediate mode or basic vertex array.

i inquired on checking vbo support glew, of suggestions i've found such as:

if ( glewgetextension("gl_version_1_9")      && glewgetextension( "gl_arb_vertex_buffer_object" ))         {             std::cout << "vbo supported." << std::endl;         }     else         {             std::cerr << "arb_vertex_buffer_object not supported!" << std::endl;         } 

returned false.

any suggestions may problem?

stop checking arb_vertex_buffer_object. in fact, stop using arb_vertex_buffer_object. use the core functionality, not extension functionality. if you're asking opengl version 3.3, have buffer object functionality in core. use that.

glewgetextension("gl_version_1_9") 

there no such extension. there no opengl version 1.9, have no idea why check way.

if want check opengl version, should use opengl functionality doing that:

glint major = 0; glint minor = 0; glgetintegerv​(gl_major_version​, &major); glgetintegerv​(gl_minor_version​, &minor); 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -