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
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