Jump to content
  • Advertisement
Sign in to follow this  
themean

OpenGL OpenGL 3.2+ context for linux with glx

This topic is 2511 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I follow this tutorial http://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_%28GLX%29
but i'm not sure in his propriety

Share this post


Link to post
Share on other sites
Advertisement
in the same topic
how i can check context version after his creation in linux (glx)
in windows i use
glGetIntegerv(GL_MAJOR_VERSION, &glVersion[0]); // Get back the OpenGL MAJOR version we are using
glGetIntegerv(GL_MINOR_VERSION, &glVersion[1]);
(glew)
but in glx this dont work

Share this post


Link to post
Share on other sites
You have to create a GL context with glXCreateContextAttribsARB as the example shows.

If you want to make gl function calls, then you need to have a context current. Call them after the glXMakeCurrent call.
That is the way it is on all platforms (Windows, Apple, Mac and even on GL ES systems).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!