Questions about GLEW and its versions

Started by
1 comment, last by beans222 11 years, 6 months ago
Hi,

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 :)
thecheeselover

Hide yo cheese! Hide yo wife!

Advertisement
I think you can specify the context you want to use with your window creation library. I think for SDL it's something like

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);
Newer versions of OpenGL include all of the functions introduced in previous versions, except for deprecated functions that should no longer be used anyway. Just get the most recent versioned context you can (hopefully 3.2/3+) and roll with it.

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

This topic is closed to new replies.

Advertisement