c++ - Loading OpenGL > 1.1 functions Windows -


i'm having trouble setting opengl msvs 2013. i'm aware opengl32.dll on windows platform located @ c:\windows\system32 implementation of opengl 1.1.

what i'm trying load newer opengl > 1.1 functions such glbindbuffer , glbufferdata. have read it's possible getting pointer function using wglgetprocaddress. when using function returned pointer null, original functions in dll using getprocaddress(opengl32dll, "...") work except newer functions don't seem load.

i'm hoping here can me go through setup , point out did wrong or if have missed something.

so here go:

  • i have downloaded opengl extensions viewer 4.4 points out i'm able run upto opengl 2.1 should more enough use or load glbindbuffer , glbufferdata.

  • i downloaded microsoft sdks/v7.1 includes headers: gl/glu.h , gl/gl.h; downloaded glext extensions api here , linked glext.lib + included headers.

  • files in linker:

c:\program files\microsoft sdks\windows\v7.1\lib\opengl32.lib

c:\program files\microsoft sdks\windows\v7.1\lib\glu32.lib

c:\users\user\desktop\glext\lib\glext.lib

  • the cpp files included:

c:\program files\microsoft sdks\windows\v7.1\include -> gl.h, glu.h

c:\users\user\desktop\glext\include -> glcorearb.h, glext.h, wglext.h

instead of handling these details yourself, suggest grab copy of glew ( http://glew.sourceforge.net/ ) handles of in standard way. use on several published products without issues.

in example, you'd able following:

if (gl_arb_multi_bind) {     //glbindbuffer available. } 

(of course, after call glewinit(), possibly glewexperimental = true; - see documentation details.)


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -