Public Members |
 |  | | ddgViewportSet ( char *n = 0, unsigned int fs = 0) |
 |  | | Create a viewport set with a title, choose a screen mode, 0 windowed 1 640x480:16. More...
|
 |  |
void | name ( char *n )
|
 |  | | Set the name. (Should affect window title.
|
 |  |
char* | name ( void )
|
 |  | | Set or return the name.
|
 |  |
int | init ( int argc, char **argv )
|
 |  | | Returns 0 on success, viewport id of problem viewport otherwise.
|
 |  |
void | enable (void)
|
 |  | | Start rendering called once from main to enter the event loop.
|
 |  |
ddgViewport* | find ( int id )
|
 |  | | Return the viewport with the given id or else return 0.
|
 |  |
void | shutdown ( bool (*s)(void))
|
 |  | | Set the update function.
|
 |  |
bool | shutdown ( void )
|
 |  | | Test if the user defined shutdown function is set.
|
 |  |
void | doShutdown ( ddgError *e )
|
 |  | | Shutdown, dall the user defined shutdown function. Pass in an optional error.
|
Static Public Members |
 |  |
void | draw (void)
|
 |  | | Callback functions.
|
 |  |
void | reshape ( int w, int h )
|
 |  |
void | specialKey ( int key, int x, int y )
|
 |  |
void | key ( unsigned char key, int x, int y )
|
 |  |
void | mouse ( int button, int state, int x, int y )
|
 |  |
void | mouseMotion ( int x, int y )
|
 |  |
void | idle ( void )
|
 |  |
void | visible ( int vis )
|
 |  |
bool | checkForError (void)
|
 |  | | Check if we are initialization or rendering caused an error.
|
 |  |
char* | mode (unsigned int m, char *buf, unsigned int bufsize )
|
 |  | | Return a mode descriptor.
|
 |  |
bool | smouse (void *obj, int button, int state, int x, int y)
|
 |  | | Default key handler.
|
 |  |
bool | smouseMotion (void *obj, int x, int y)
|
 |  | | Default Event handler, returns true if a change occurred.
|
 |  |
bool | sspecialKey (void *obj, int k, int x, int y)
|
 |  | | Default Event handler, returns true if a change occurred.
|
 |  |
bool | skey (void *obj, unsigned char k, int x, int y)
|
 |  | | Default Event handler, returns true if a change occurred.
|