Jump to content

  • Log In with Google      Sign In   
  • Create Account

Questions about GLEW and its versions


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 thecheeselover   Members   -  Reputation: 330

Like
0Likes
Like

Posted 08 October 2012 - 06:56 PM

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!

Sponsor:

#2 rocklobster   Members   -  Reputation: 415

Like
1Likes
Like

Posted 08 October 2012 - 10:22 PM

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);

Edited by rocklobster, 08 October 2012 - 10:23 PM.


#3 beans222   Members   -  Reputation: 1103

Like
1Likes
Like

Posted 09 October 2012 - 12:03 AM

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

 





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS