Public Types | Public Member Functions

glut::Host Class Reference
[Wavepacket Glut Library Wrapper]

If a client wants to use this library's glut helper entry point, it needs to supply an object that supports this interface. More...

#include <glut.h>

Inheritance diagram for glut::Host:
Inheritance graph
[legend]

List of all members.

Public Types

enum  eBehavior {
  eContinue = 1,
  eExit = 2,
  eInvalid = 0
}

Public Member Functions

virtual ~Host (void) throw ()
virtual void init (void)
 Called once, at initialization (just before main glut loop).
virtual eBehavior tick (void)
 Called on every glut idle event.
virtual void display (int w, int h)
 Called for every display frame.
virtual eBehavior mouseMove (int x, int y)
 Called on mouse motion (see glutPassiveMotionFunc()).
virtual eBehavior mouseButton (int button, int state, int x, int y)
 Called on mouse button events (see glutMouseFunc()).
virtual eBehavior keyboard (int key, int mods)
 Called on keyboard events.
virtual eBehavior specialKey (int key, int mods)
 Called when a special key is pressed (see glutSpecialFunc()).
virtual int shutdown (void)
 Called only once, at glut shutdown.

Detailed Description

If a client wants to use this library's glut helper entry point, it needs to supply an object that supports this interface.

Definition at line 105 of file glut.h.


Member Enumeration Documentation

Enumerator:
eContinue 

continue in glut loop

eExit 

exit program immediately

eInvalid 

Definition at line 108 of file glut.h.


The documentation for this class was generated from the following files: