Members - Reputation: 361
Posted 08 October 2012 - 06:56 PM
As the title says, I have few questions about GLEW and its versions. For the latest version of GLEW, it is said that it supports openGL 4.3, but what if I want to use openGL 3.3? Do I have to use an older version? If not, how do I request a version (I searched this and didn't find anything good)? If I can't resquest a version, how will I know if I use something that belong to openGL 4.0?
Thank you for your answers, they are really appreciated
Members - Reputation: 415
Posted 08 October 2012 - 10:22 PM
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
For GLFW i think they have some flags you can set when you open the window using
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3); glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 3);
Edited by rocklobster, 08 October 2012 - 10:23 PM.
Members - Reputation: 1206
Posted 09 October 2012 - 12:03 AM
As far as I know, there's no reason to not always use the most recent GLEW version.
New C/C++ Build Tool 'Stir' (doesn't just generate Makefiles, it does the build): https://github.com/space222/stir