Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgViewportSet Class Reference

The set of viewports connected to the window. More...

#include <ddgviewport.h>

Class diagram for ddgViewportSet:

ddgList

List of all members.


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.

ddgViewportfind ( 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.


Detailed Description

The set of viewports connected to the window.

The first viewport added must be the root window.


Member Function Documentation

ddgViewportSet::ddgViewportSet (char * n = 0, unsigned int fs = 0)

Create a viewport set with a title, choose a screen mode, 0 windowed 1 640x480:16.

@60 2 800x600:16@60 3 1024x768:16@60 4 1152x870:16@60 5 1280x1024:16@60 6 1600x1200:16@60 7 640x480:32@60 8 800x600:32@60 9 1024x768:32@60 10 1152x870:32@60 11 1280x1024:32@60 12 1600x1200:32@60


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:58 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999