callback method

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • berthelot samuel

    callback method

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