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

/driver/common.cpp File Reference

#include <iostream>
#include "glUtil.h"
#include "trackball.h"
#include "common.h"

Include dependency graph for common.cpp:

Include dependency graph

Functions

const char * getModifierText (tKeyboardModifier t)
void installKeyboardHandler (keyboardCallback kf, const char *title, const char *description, tKeyboardModifier mod, unsigned char firstKey, unsigned char lastKey)
void printKeyboardAssignments ()
bool doKeyboardCallbacks (pRecContext pContextInfo, unsigned char keyHit, tKeyboardModifier mod)
void installJoystickHandler (joystickCallback jC, void *userdata)
void removeJoystickHandler (joystickCallback jC, void *userdata)
void handleJoystickMovement (pRecContext pContextInfo, double panX, double panY)
void installCommandLineHandler (commandLineCallback CLC, const char *arg, const char *param, const char *usage)
void printCommandLineArguments ()
void processCommandLineArgs (int argc, char *argv[])
void installMouseClickHandler (mouseCallback mC)
void removeMouseClickHandler (mouseCallback mC)
bool handleMouseClick (pRecContext pContextInfo, int x, int y, point3d where, tButtonType button, tMouseEventType mouse)
void initialConditions (pRecContext pContextInfo)
bool doKeyboardCommand (pRecContext pContextInfo, unsigned char keyHit, bool shift, bool cntrl, bool alt)
void SetLighting (unsigned int mode)
void resetCamera ()
void resetCamera (recCamera *pCamera)
void cameraLookAt (GLfloat x, GLfloat y, GLfloat z, float cameraSpeed)
void cameraMoveTo (GLfloat x, GLfloat y, GLfloat z, float cameraSpeed)
point3d GetOGLPos (int x, int y)

Variables

bool const  verbose = false
char gDefaultMap [1024] = ""
const recVec gOrigin = { 0.0, 0.0, 0.0 }
std::vector< commandLineCallbackData * > commandLineCallbacks
std::vector< joystickCallbackData * > joystickCallbacks
std::vector< mouseCallbackData * > mouseCallbacks
keyboardCallbackDatakeyboardCallbacks [256]

Function Documentation

void cameraLookAt GLfloat  x,
GLfloat  y,
GLfloat  z,
float  cameraSpeed
 

void cameraMoveTo GLfloat  x,
GLfloat  y,
GLfloat  z,
float  cameraSpeed
 

bool doKeyboardCallbacks pRecContext  pContextInfo,
unsigned char  keyHit,
tKeyboardModifier  mod
 

bool doKeyboardCommand pRecContext  pContextInfo,
unsigned char  keyHit,
bool  shift,
bool  cntrl,
bool  alt
 

const char* getModifierText tKeyboardModifier  t  ) 
 

point3d GetOGLPos int  x,
int  y
 

void handleJoystickMovement pRecContext  pContextInfo,
double  panX,
double  panY
 

bool handleMouseClick pRecContext  pContextInfo,
int  x,
int  y,
point3d  where,
tButtonType  button,
tMouseEventType  mouse
 

void initialConditions pRecContext  pContextInfo  ) 
 

void installCommandLineHandler commandLineCallback  CLC,
const char *  arg,
const char *  param,
const char *  usage
 

void installJoystickHandler joystickCallback  jC,
void *  userdata
 

void installKeyboardHandler keyboardCallback  kf,
const char *  title,
const char *  description,
tKeyboardModifier  mod,
unsigned char  firstKey,
unsigned char  lastKey
 

void installMouseClickHandler mouseCallback  mC  ) 
 

void printCommandLineArguments  ) 
 

void printKeyboardAssignments  ) 
 

void processCommandLineArgs int  argc,
char *  argv[]
 

void removeJoystickHandler joystickCallback  jC,
void *  userdata
 

void removeMouseClickHandler mouseCallback  mC  ) 
 

void resetCamera recCamera pCamera  ) 
 

void resetCamera  ) 
 

void SetLighting unsigned int  mode  ) 
 


Variable Documentation

std::vector<commandLineCallbackData *> commandLineCallbacks [static]
 

char gDefaultMap[1024] = ""
 

const recVec gOrigin = { 0.0, 0.0, 0.0 }
 

std::vector<joystickCallbackData *> joystickCallbacks [static]
 

keyboardCallbackData* keyboardCallbacks[256] [static]
 

Initial value:

 
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }

std::vector<mouseCallbackData *> mouseCallbacks [static]
 

bool const verbose = false [static]
 


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