Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/driver/main.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Classes

struct  CGPoint
struct  CGRect
struct  CGSize

Typedefs

typedef CGSize CGSize
typedef CGPoint CGPoint
typedef CGRect CGRect

Functions

void createMenus ()
void processMenuEvents (int option)
void keyPressed (unsigned char key, int x, int y)
 Called when a key is pressed, and no other keys are held down.

void mouseMovedButton (int x, int y)
 Called when the mouse is moved with a button pressed down.

void mousePressedButton (int button, int state, int x, int y)
 Called when a mouse button is pressed.

void mousePan (int x, int y, pRecContext pContextInfo)
void mouseDolly (int x, int y, pRecContext pContextInfo)
void renderScene (void)
 Renders the scene.

void buildGL (void)
 Initializes OpenGL.

void drawGL (pRecContext pContextInfo)
 Main OpenGL drawing function.

void drawCStringGL (char *cstrOut, GLuint fontList)
 Draws a CString in OpenGL.

void drawInfo (pRecContext pContextInfo)
void resizeWindow (int x, int y)
 Called when the window is resized.

void resizeGL (pRecContext pContextInfo, CGRect viewRect)
 Handles resizing of GL need context update and if the window dimensions change, a window dimension update, reseting of viewport and an update of the projection matrix.

void updateProjection (pRecContext pContextInfo)
 Update the projection matrix based on camera and view info.

void updateModelView (pRecContext pContextInfo)
 Updates the viewpoint of the model.

void pointPath ()
int processFramesPerSecond (char *argument[], int maxNumArgs)
MapgetMap ()
mapAbstractiongetMapAbstraction ()
pRecContext getCurrentContext ()

Variables

bool startTrajRecap

Typedef Documentation

typedef struct CGPoint CGPoint
 

typedef struct CGRect CGRect
 

typedef struct CGSize CGSize
 


Function Documentation

void buildGL void   ) 
 

Initializes OpenGL.

void createMenus  ) 
 

void drawCStringGL char *  cstrOut,
GLuint  fontList
 

Draws a CString in OpenGL.

void drawGL pRecContext  pContextInfo  ) 
 

Main OpenGL drawing function.

void drawInfo pRecContext  pContextInfo  )  [static]
 

pRecContext getCurrentContext  ) 
 

Map* getMap  ) 
 

mapAbstraction* getMapAbstraction  ) 
 

void keyPressed unsigned char  key,
int  x,
int  y
 

Called when a key is pressed, and no other keys are held down.

void mouseDolly int  x,
int  y,
pRecContext  pContextInfo
[static]
 

void mouseMovedButton int  x,
int  y
 

Called when the mouse is moved with a button pressed down.

void mousePan int  x,
int  y,
pRecContext  pContextInfo
[static]
 

void mousePressedButton int  button,
int  state,
int  x,
int  y
 

Called when a mouse button is pressed.

void pointPath  ) 
 

int processFramesPerSecond char *  argument[],
int  maxNumArgs
 

void processMenuEvents int  option  ) 
 

void renderScene void   ) 
 

Renders the scene.

Used by GLUT for it's display function. Wraps the drawGL() function.

void resizeGL pRecContext  pContextInfo,
CGRect  viewRect
 

Handles resizing of GL need context update and if the window dimensions change, a window dimension update, reseting of viewport and an update of the projection matrix.

void resizeWindow int  x,
int  y
 

Called when the window is resized.

Specific format for GLUT.

void updateModelView pRecContext  pContextInfo  ) 
 

Updates the viewpoint of the model.

void updateProjection pRecContext  pContextInfo  ) 
 

Update the projection matrix based on camera and view info.

Should be called when viewport size, eye z position, or camera aperture changes. Also call if far or near changes which is determined by shape size in this case.


Variable Documentation

bool startTrajRecap
 


Generated on Tue Aug 18 03:35:59 2009 for HOG by doxygen 1.3.4