create window and draw scene in different functions
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.
Pretty much any tutorial on OpenGL that covers window handling separates these parts. Take a look at NeHe's tutorials for example.
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
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
Popular Topics
Advertisement