45 static float bgcolor[4] = {0.0, 0.0, 0.0, 0.0};
46 static float white[4] = {1.0, 1.0, 1.0, 1.0};
47 static float red[4] = {1.0, 0.0, 0.0, 1.0};
85 ReInfo->_reLastTime = -1.0;
95 GfOut(
"Video Capture Mode Not Enabled\n");
100 if (capture->
state) {
101 GfOut(
"Video Capture Mode On\n");
107 GfOut(
"Video Capture Mode Off\n");
141 static char *curMsg = 0;
143 if (curMsg) free(curMsg);
146 curMsg = strdup(msg);
157 static char *curMsg = 0;
159 if (curMsg) free(curMsg);
162 curMsg = strdup(msg);
305 for (i = 1; i <
LINES; i++) {
315 static const char *title[3] = {
"Practice",
"Qualifications",
"Race"};
341 for (i = 0; i <
LINES; i++) {
372 for (i = 1; i <
LINES; i++) {
389 if ((clr >= 0) && (clr < 2)) {
410 for (i = 0; i <
LINES; i++) {
static void reAddKeys(void)
void ReResScreenSetText(const char *text, int line, int clr)
void ReSetRaceMsg(const char *msg)
double currentTime
current time in sec since the beginning of the simulation
static void ReBoardInfo(void *)
static void reSkipPreStart(void *)
static void reDisplay(void)
int GfuiButtonCreate(void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost)
Add a button to a screen.
static void reHookActivate(void *)
static char * reResMsg[LINES]
void GfuiAddKey(void *scr, unsigned char key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased)
Add a Keyboard callback to a screen.
static int reResMsgClr[LINES]
Robot Module Interface Definition.
void GfuiDisplay(void)
Display function for the GUI to be called during redisplay of glut.
void GfuiScreenRelease(void *scr)
Release the given screen.
void ReResEraseScreen(void)
static void * reHookHandle
void * ReResScreenInit(void)
static void reResScreenActivate(void *)
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
tSituation * s
Situation during race.
void * ReScreenInit(void)
const char * GfParmGetStr(void *parmHandle, const char *path, const char *key, const char *deflt)
Get a string parameter from the parameter set handle.
#define GFUI_FONT_LARGE_C
static void reResCont(void *)
The Gaming Framework API (client part).
void ReHookShutdown(void)
void * GfuiScreenCreateEx(float *bgColor, void *userDataOnActivate, tfuiCallback onActivate, void *userDataOnDeactivate, tfuiCallback onDeactivate, int mouseAllowed)
Create a screen.
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
void ReSetRaceBigMsg(const char *msg)
#define RE_STATE_RACE_STOP
#define RM_DISP_MODE_NONE
#define RM_DISP_MODE_CAPTURE
static void reContDisplay(void)
static void reResScreenShutdown(void *)
void GfuiLabelSetColor(void *scr, int id, float *color)
Change the color of a label.
static void * reScreenHandle
void ReTimeMod(void *vcmd)
tRmMovieCapture movieCapture
void * GfuiHookCreate(void *userDataOnActivate, tfuiCallback onActivate)
Create a callback hook.
void(* tfuiCallback)(void *)
This is the race information structures.
void ReResScreenSetTitle(char *title)
void GfuiAddSKey(void *scr, int key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased)
Add a Special Keyboard shortcut to the screen.
void ReResScreenAddText(char *text)
static void * reResScreenHdle
double GfTimeClock(void)
Get the time in seconds.
void GfuiHelpScreen(void *prevScreen)
Generate a help screen.
void GfuiScreenShot(void *)
Save a screen shot in png format.
static void reScreenActivate(void *)
int GfuiLabelCreateEx(void *scr, const char *text, float *fgColor, int font, int x, int y, int align, int maxlen)
Create a new label (extended version).
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the screen.
#define GFUI_FONT_MEDIUM_C
void ReScreenShutdown(void)
#define RM_DISP_MODE_NORMAL
int GfuiVisibilitySet(void *scr, int id, int visible)
Set/unset the visibility attribute of an object.
static int reResMsgId[LINES]
void ReResScreenRemoveText(int line)
static void reAddResKeys(void)
void GfuiHookRelease(void *hook)
Release the given hook.
void ReStateApply(void *vstate)
void * params
Raceman parameters.
static void reMovieCapture(void *)