callback method

B

berthelot samuel

hi all,
I'm doing some opengl demo, with each scenes in separate .cpp files. I
have a method initGL that calls all the init stuff for openGL, in the
main file. initGL is called once before the demo loop.
But my problem is that I would like an initGL method different for
every scene so basically I would like it to be in every single .cpp
files. But then how can I call it only once for each scene and not
everytime the program loops ?
thanx
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,137
Messages
2,570,802
Members
47,348
Latest member
Mikientp

Latest Threads

Top