class Stk_Prog: public Stk_Handler

This class is used to represent a prog on a glut system

Inheritance:


Public Methods

[more] Stk_Prog(Stk_Prog *)
the code to init this program
[more] Stk_Prog(Stk_Looper *)
the first prog
[more]void Quit()
Quit this program
[more]virtual ~Stk_Prog()
the delete code : don't call it explicit use loop with return -1
[more]void MessageReceived(Stk_Message *)
Hook function: When this handler receives a messages, it send to this function
[more]int Loop()
the loop of program


Inherited from Stk_Handler:

Public Methods

ovoid Activate()
ovoid UnActivate()
oint IsActive()
ovoid PostMessage(Stk_Message *)


Documentation

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!!!
o Stk_Prog(Stk_Prog *)
the code to init this program

o Stk_Prog(Stk_Looper *)
the first prog

ovoid Quit()
Quit this program

ovirtual ~Stk_Prog()
the delete code : don't call it explicit use loop with return -1

ovoid MessageReceived(Stk_Message *)
Hook function: When this handler receives a messages, it send to this function

oint Loop()
the loop of program


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.