This class is used to represent a prog on a glut system
This class is used to represent a prog on a glut system. There are tree functions to write:
- Constructor: you place here what you must initialize
- Loop: you place here what we are doing at each frame. To quit this program, we must return 0 else return something different 0
- Destructor: this is simply the destructor
Each class son of Stk_Prog must call the derivated constructor. We could say that it works like context. if we create in Loop() another class wich derivates from Stk_Prog, next frame the Loop() of this new class will be used. To return old program, just return 0 in the new loop function.
WARNING: to create a prog, use the new operator. Don't create locally!!!
Stk_Prog(Stk_Looper *)
void Quit()
virtual ~Stk_Prog()
void MessageReceived(Stk_Message *)
Alphabetic index HTML hierarchy of classes or Java