TORCS  1.3.9
The Open Racing Car Simulator
Screen Management API

Functions

void GfTime2Str (char *result, int resultSize, tdble sec, int sgn)
 Convert a time in seconds (float) to an ascii string. More...
 
void GfuiScreenShot (void *)
 Save a screen shot in png format. More...
 
void GfScrShutdown (void)
 Shutdown the screen. More...
 
void GfScrGetSize (int *scrw, int *scrh, int *vieww, int *viewh)
 Get the screen and viewport sizes. More...
 
void * GfScrMenuInit (void *precMenu)
 Create and activate the video options menu screen. More...
 

Detailed Description

Function Documentation

◆ GfScrGetSize()

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

Get the screen and viewport sizes.

Parameters
scrwaddress of screen with
scrhaddress of screen height
viewwaddress of viewport with
viewhaddress of viewport height
Returns
none

Definition at line 471 of file screen.cpp.

◆ GfScrMenuInit()

void* GfScrMenuInit ( void *  precMenu)

Create and activate the video options menu screen.

Parameters
precMenuprevious menu to return to

Definition at line 767 of file screen.cpp.

Here is the call graph for this function:

◆ GfScrShutdown()

void GfScrShutdown ( void  )

Shutdown the screen.

Returns
none

Definition at line 442 of file screen.cpp.

Here is the call graph for this function:

◆ GfTime2Str()

void GfTime2Str ( char *  result,
int  resultSize,
tdble  sec,
int  sgn 
)

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

Parameters
resultbuffer for the formatted string
resultSizesize of the buffer
secTime to convert
sgnFlag to indicate if the sign (+) is to be displayed for positive values of time.
Returns
Time string.

Definition at line 193 of file tgf.cpp.

Here is the call graph for this function:

◆ GfuiScreenShot()

void GfuiScreenShot ( void *  )

Save a screen shot in png format.

Definition at line 913 of file gui.cpp.

Here is the call graph for this function: