torcs - 1.2.2

Screen management.


Files

file  screen.cpp
 Screen management.


Functions

char * GfTime2Str (tdble sec, int sgn)
 Convert a time in seconds (float) to an ascii string.

void GfuiScreenShot (void *)
 Save a screen shot in png format.

void GfScrShutdown (void)
 Shutdown the screen.

void GfScrGetSize (int *scrw, int *scrh, int *vieww, int *viewh)
 Get the screen and viewport sizes.

void * GfScrMenuInit (void *precMenu)
 Create and activate the video options menu screen.


Function Documentation

void GfScrGetSize int *  scrw,
int *  scrh,
int *  vieww,
int *  viewh
 

Get the screen and viewport sizes.

Parameters:
scrw address of screen with
scrh address of screen height
vieww address of viewport with
viewh address of viewport height
Returns:
none

void* GfScrMenuInit void *  precMenu  ) 
 

Create and activate the video options menu screen.

Parameters:
precMenu previous menu to return to

Here is the call graph for this function:

void GfScrShutdown void   ) 
 

Shutdown the screen.

Returns:
none

Here is the call graph for this function:

char* GfTime2Str tdble  sec,
int  sgn
 

Convert a time in seconds (float) to an ascii string.

Parameters:
sec Time to convert
sgn Flag to indicate if the sign (+) is to be displayed for positive values of time.
Returns:
Time string.
Warning:
The returned string has to be free by the caller.

Here is the call graph for this function:

void GfuiScreenShot void *   ) 
 

Save a screen shot in png format.

Here is the call graph for this function:


Generated at Thu Feb 26 21:54:23 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.