TORCS  1.3.9
The Open Racing Car Simulator
Graphic Module Interface

Interface for graphic rendering of the simulation, the graphic module is discovered and loaded during runtime. More...

Collaboration diagram for Graphic Module Interface:

Files

file  graphic.h
 Graphic Module Interface Definition.
 

Classes

struct  tGraphicItf
 Interface Structure for Graphic Renering Module. More...
 

Typedefs

typedef int(* tfGraphicInitTrack) (tTrack *track)
 Load and set up track model for rendering. More...
 
typedef int(* tfGraphicInitCars) (struct Situation *s)
 Load and set up car models for rendering. More...
 
typedef int(* tfGraphicInitView) (int x, int y, int width, int height, int flag, void *screen)
 Init viewport for rendering. More...
 
typedef int(* tfGraphicRefresh) (struct Situation *)
 Render scene based on given situation. More...
 
typedef void(* tfGraphicShutdwnCars) (void)
 Shut down and release car models. More...
 
typedef void(* tfGraphicShutdwnTrack) (void)
 Shut down and release track model. More...
 
typedef void(* tGraphicMuteForMenu) (void)
 Set output audio gain to 0 to mute sound, used for menus during race, tfGraphicRefresh will reset the gain to normal level. More...
 

Detailed Description

Interface for graphic rendering of the simulation, the graphic module is discovered and loaded during runtime.

Typedef Documentation

◆ tfGraphicInitCars

typedef int(* tfGraphicInitCars) (struct Situation *s)

Load and set up car models for rendering.

Parameters
[in]sSituation containing list with cars

Definition at line 131 of file graphic.h.

◆ tfGraphicInitTrack

typedef int(* tfGraphicInitTrack) (tTrack *track)

Load and set up track model for rendering.

Parameters
[in]trackTrack structure

Definition at line 125 of file graphic.h.

◆ tfGraphicInitView

typedef int(* tfGraphicInitView) (int x, int y, int width, int height, int flag, void *screen)

Init viewport for rendering.

Parameters
[in]xX position of viewport
[in]yY position of viewport
[in]widthWidth of viewport
[in]heightHeight of viewport
[in]flagCurrently unused
[in]screenScreen (tGfuiScreen)
Returns
0, unused
See also
ReScreenInit

Definition at line 144 of file graphic.h.

◆ tfGraphicRefresh

typedef int(* tfGraphicRefresh) (struct Situation *)

Render scene based on given situation.

Parameters
[in]sSituation
Returns
0, unsued

Definition at line 151 of file graphic.h.

◆ tfGraphicShutdwnCars

typedef void(* tfGraphicShutdwnCars) (void)

Shut down and release car models.

Definition at line 156 of file graphic.h.

◆ tfGraphicShutdwnTrack

typedef void(* tfGraphicShutdwnTrack) (void)

Shut down and release track model.

Definition at line 161 of file graphic.h.

◆ tGraphicMuteForMenu

typedef void(* tGraphicMuteForMenu) (void)

Set output audio gain to 0 to mute sound, used for menus during race, tfGraphicRefresh will reset the gain to normal level.

Definition at line 166 of file graphic.h.