create window and draw scene in different functions

Started by
2 comments, last by NicolasJay 12 years, 11 months ago
I need to create the GL window in a function and then in another function to deal with draw scene and other stuff (a loop where we call different functions). Did someone tried this before because I tried but unsuccessfully.
Advertisement
Pretty much any tutorial on OpenGL that covers window handling separates these parts. Take a look at NeHe's tutorials for example.
Thanks for your answer. I'll take a look.
this tutorial in particular would be a good place to start;

http://gpwiki.org/index.php/SDL:Tutorials:Using_SDL_with_OpenGL

The SDL(Simple Directmedia Library) library will hide most of the complicated stuff until you become more familiar with OpenGL.

SDL can be downloaded here

This topic is closed to new replies.

Advertisement