Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to download opengl sdk (v. 3 or v. 4)?

Tags:

c++

opengl

Wikipedia says that OpenGl V4.x is the latest. However my Visual Studio 2012 just offers the following version

#define GL_VERSION_1_1                    1

So my questions:

Which version is the most common that I should use? E.g. version 2.x because there are many tutorials, it is backward compatible etc.? I may have to mention that I normally prefer to write in C++, so is any version of Opengl e.g. offering namespaces? Are there huge differences between OpenGl 2,3 and 4?

And where can I get the Libs+Header files e.g. for OpenGl 4?

like image 647
Anonymous Avatar asked Dec 05 '25 13:12

Anonymous


1 Answers

And where can I get the Libs+Header files e.g. for OpenGl 4?

You don't. OpenGL uses the so called "extension mechanism" to load functionality that's beyond the system ABI version. There exist third party libraries that do the extension loading and provide a header with the extended functionality.

Most popular is GLEW, which has its homepage at http://glew.sourceforge.net ; be warned though that right now of writing this GLEW is not up to date with OpenGL-3 and later core profiles. You must use compatibility profiles with GLEW or things get unstable.

like image 120
datenwolf Avatar answered Dec 07 '25 04:12

datenwolf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!