What's the best way to start up a opengl context in my setup?

Posted by NoobScratcher on Game Development See other posts from Game Development or by NoobScratcher
Published on 2013-11-10T03:52:50Z Indexed on 2013/11/10 4:15 UTC
Read the original article Hit count: 202

Filed under:

Would it be better to create a callback function which contains a OpenGL 3.0+ Context including viewport, matrix, etc or setup OpenGL in a function called GL_StartUp and use that GL_StartUp Function in the mainloop and callback function to that Function.

I want my program to only show a OpenGL default scene when the user clicks on the New Game menu item in the menu bar rather then just have one setup when the program starts.

I'm using Ubuntu 64bit, GTK 3.0 and GTK OpenGL

© Game Development or respective owner

Related posts about opengl