Overview   Project   Class   Tree   Deprecated   Index 
Marble and Madness
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

marbleGame
(marbleGame globals)

   in marblegame.cpp

(marbleGame globals)


Field Summary
 GameView* Game
          Global Variable storing the current Game Section It can point either to GS or to GI
 GameView GS
          Global Variable storing the Game Session
 
Method Summary
 void Display( void )
          Glut Callback to Draw everything.
 void Idle( void )
          Glut Idle Callback .
 void Key( unsigned char key, int x, int y )
          Glut Callback on pression of keys.
 int main( int argc, char** argv )
          The Classical Main Function It has to setup all the glut callbacks, initialize Openglstatus and start the glutMainLoop.
 void Mouse( int button, int state, int x, int y )
          Glut Callback to press botton Mouse
 void processMouseActiveMotion( int x, int y )
          Glut Callback to Mouse active movement
 void Reshape( GLsizei w, GLsizei h )
          Glut Callback on Window Reshape.
 void SpecialKey( int key, int x, int y )
          Glut Callback on pression of arrow keys.
 void SpecialKeyUp( int key, int x, int y )
          Glut Callback on release of arrow keys.
 void Visible( int vis )
          Glut Callback on Window visibility.
 

Field Detail

Game

 GameView* Game;
Global Variable storing the current Game Section It can point either to GS or to GI
See marblegame.cpp.

GS

 GameView GS;
Global Variable storing the Game Session
See marblegame.cpp.


Method Detail

Display

 void Display( void );
Glut Callback to Draw everything. It clear the screen, call the GameView Update(), TargetCamera and Draw() and swap the buffers.
See marblegame.cpp.

Idle

 void Idle( void );
Glut Idle Callback . It is continuously called when events are not being received. It post a refresh request in order to make the animation as smoother as possible. It is enabled/disable by the Visible Callback
See Also:

See marblegame.cpp.

Key

 void Key( unsigned char key, int x, int y );
Glut Callback on pression of keys.
See marblegame.cpp.

main

 int main( int argc, char** argv );
The Classical Main Function It has to setup all the glut callbacks, initialize Openglstatus and start the glutMainLoop.
See marblegame.cpp.

Mouse

 void Mouse( int button, int state, int x, int y );
Glut Callback to press botton Mouse
See marblegame.cpp.

processMouseActiveMotion

 void processMouseActiveMotion( int x, int y );
Glut Callback to Mouse active movement
See marblegame.cpp.

Reshape

 void Reshape( GLsizei w, GLsizei h );
Glut Callback on Window Reshape.
See marblegame.cpp.

SpecialKey

 void SpecialKey( int key, int x, int y );
Glut Callback on pression of arrow keys.
See marblegame.cpp.

SpecialKeyUp

 void SpecialKeyUp( int key, int x, int y );
Glut Callback on release of arrow keys. It should stop the (side and back) thrust and the rotation of the ship.
See marblegame.cpp.

Visible

 void Visible( int vis );
Glut Callback on Window visibility. It is called when the glut window change its visiblitiy status. When the window is hidden we should stop the idle callback (and viceversa).
See marblegame.cpp.

 Overview   Project   Class   Tree   Deprecated   Index 
Marble and Madness
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD