By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,148 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,148 IT Pros & Developers. It's quick & easy.

callback method

P: n/a
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
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.