TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
Screen Management API

Functions

void GfTime2Str (char *result, int resultSize, 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.
int GfuiGlutExtensionSupported (const char *str)
 Query an OpenGL extension through GLUT for the current rendering context.

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

Definition at line 529 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 836 of file screen.cpp.

Here is the call graph for this function:

◆ GfScrShutdown()

void GfScrShutdown ( void )

Shutdown the screen.

Definition at line 501 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.

Definition at line 192 of file tgf.cpp.

Here is the call graph for this function:

◆ GfuiGlutExtensionSupported()

int GfuiGlutExtensionSupported ( const char * str)
extern

Query an OpenGL extension through GLUT for the current rendering context.

Parameters
[in]strExact extension name, for example "GL_ARB_multitexture".
Returns
Nonzero if the extension is supported, zero otherwise.

Definition at line 1046 of file screen.cpp.

◆ GfuiScreenShot()

void GfuiScreenShot ( void * notused)

Save a screen shot in png format.

Definition at line 998 of file gui.cpp.

Here is the call graph for this function: