TORCS  1.3.9
The Open Racing Car Simulator
graphic.h File Reference

Graphic Module Interface Definition. More...

#include <track.h>
#include <car.h>
Include dependency graph for graphic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Macros

#define GRX_IDENT   0
 
#define GR_PARAM_FILE   "config/graph.xml"
 
#define GR_SOUND_PARM_CFG   "config/sound.xml"
 
#define GR_SCT_SOUND   "Sound Settings"
 
#define GR_ATT_SOUND_STATE   "state"
 
#define GR_ATT_SOUND_STATE_PLIB   "plib"
 
#define GR_ATT_SOUND_STATE_OPENAL   "openal"
 
#define GR_ATT_SOUND_STATE_DISABLED   "disabled"
 
#define GR_ATT_SOUND_VOLUME   "volume"
 
#define GR_SCT_GLFEATURES   "OpenGL Features"
 
#define GR_ATT_TEXTURECOMPRESSION   "texture compression ARB"
 
#define GR_ATT_TEXTURECOMPRESSION_ENABLED   "enabled"
 
#define GR_ATT_TEXTURECOMPRESSION_DISABLED   "disabled"
 
#define GR_ATT_WHEELRENDERING   "wheel rendering"
 
#define GR_ATT_WHEELRENDERING_DETAILED   "detailed"
 
#define GR_ATT_WHEELRENDERING_SIMPLE   "simple"
 
#define GR_ATT_TEXTURESIZE   "user texture sizelimit"
 
#define GR_SCT_DISPMODE   "Display Mode"
 
#define GR_ATT_CAM   "camera"
 
#define GR_ATT_CAM_HEAD   "camera head list"
 
#define GR_ATT_MIRROR   "enable mirror"
 
#define GR_ATT_MAP   "map mode"
 
#define GR_ATT_FOVY   "fovy"
 
#define GR_ATT_BOARD   "driver board"
 
#define GR_ATT_COUNTER   "driver counter"
 
#define GR_ATT_LEADER   "leader board"
 
#define GR_ATT_DEBUG   "debug info"
 
#define GR_ATT_GGRAPH   "G graph"
 
#define GR_ATT_ARCADE   "arcade"
 
#define GR_ATT_NBLEADER   "Max leaders entries"
 
#define GR_SCT_TVDIR   "TV Director View"
 
#define GR_ATT_CHGCAMINT   "change camera interval"
 
#define GR_ATT_EVTINT   "event interval"
 
#define GR_ATT_PROXTHLD   "proximity threshold"
 
#define GR_SCT_GRAPHIC   "Graphic"
 
#define GR_ATT_SMOKENB   "smoke value"
 
#define GR_ATT_SMOKEDELTAT   "smoke interval"
 
#define GR_ATT_SMOKEDLIFE   "smoke duration"
 
#define GR_ATT_MAXSTRIPBYWHEEL   "skid value"
 
#define GR_ATT_MAXPOINTBYSTRIP   "skid length"
 
#define GR_ATT_SKIDDELTAT   "skid interval"
 
#define GR_ATT_FOVFACT   "fov factor"
 
#define GR_ATT_LODFACTOR   "LOD Factor"
 
#define GR_ATT_NB_SCREENS   "number of screens"
 
#define GR_ATT_CUR_DRV   "current driver"
 
#define GR_SCT_PLAYABLE_DOV   "Playable Cameras Distance of Views"
 
#define GR_ATT_FRONT_GLOBAL   "Front Level Group Global"
 
#define GR_ATT_FRONT_LEVEL3   "Front Level Group 3"
 
#define GR_ATT_FRONT_LEVEL2   "Front Level Group 2"
 
#define GR_ATT_FRONT_LEVEL1   "Front Level Group 1"
 
#define GR_ATT_REAR_GLOBAL   "Rear Level Group Global"
 
#define GR_ATT_REAR_LEVEL3   "Rear Level Group 3"
 
#define GR_ATT_REAR_LEVEL2   "Rear Level Group 2"
 
#define GR_ATT_REAR_LEVEL1   "Rear Level Group 1"
 
#define GR_ATT_FRONT_MAP1   "Front Level Map 1"
 
#define GR_ATT_FRONT_MAP2   "Front Level Map 2"
 
#define GR_ATT_FRONT_MAP3   "Front Level Map 3"
 
#define GR_ATT_REAR_MAP1   "Rear Level Map 1"
 
#define GR_ATT_REAR_MAP2   "Rear Level Map 2"
 
#define GR_ATT_REAR_MAP3   "Rear Level Map 3"
 
#define GR_VIEW_STD   0 /* full screen view */
 
#define GR_VIEW_PART   1 /* partial screen view (scissor test) */
 

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...
 
typedef void(* tfGraphicBendCar) (int, sgVec3, sgVec3, int)
 

Detailed Description

Graphic Module Interface Definition.

Author
Bernhard Wymann, Eric Espie
Version
$Id$

Definition in file graphic.h.

Macro Definition Documentation

◆ GR_ATT_ARCADE

#define GR_ATT_ARCADE   "arcade"

Definition at line 74 of file graphic.h.

◆ GR_ATT_BOARD

#define GR_ATT_BOARD   "driver board"

Definition at line 69 of file graphic.h.

◆ GR_ATT_CAM

#define GR_ATT_CAM   "camera"

Definition at line 64 of file graphic.h.

◆ GR_ATT_CAM_HEAD

#define GR_ATT_CAM_HEAD   "camera head list"

Definition at line 65 of file graphic.h.

◆ GR_ATT_CHGCAMINT

#define GR_ATT_CHGCAMINT   "change camera interval"

Definition at line 78 of file graphic.h.

◆ GR_ATT_COUNTER

#define GR_ATT_COUNTER   "driver counter"

Definition at line 70 of file graphic.h.

◆ GR_ATT_CUR_DRV

#define GR_ATT_CUR_DRV   "current driver"

Definition at line 94 of file graphic.h.

◆ GR_ATT_DEBUG

#define GR_ATT_DEBUG   "debug info"

Definition at line 72 of file graphic.h.

◆ GR_ATT_EVTINT

#define GR_ATT_EVTINT   "event interval"

Definition at line 79 of file graphic.h.

◆ GR_ATT_FOVFACT

#define GR_ATT_FOVFACT   "fov factor"

Definition at line 90 of file graphic.h.

◆ GR_ATT_FOVY

#define GR_ATT_FOVY   "fovy"

Definition at line 68 of file graphic.h.

◆ GR_ATT_FRONT_GLOBAL

#define GR_ATT_FRONT_GLOBAL   "Front Level Group Global"

Definition at line 97 of file graphic.h.

◆ GR_ATT_FRONT_LEVEL1

#define GR_ATT_FRONT_LEVEL1   "Front Level Group 1"

Definition at line 100 of file graphic.h.

◆ GR_ATT_FRONT_LEVEL2

#define GR_ATT_FRONT_LEVEL2   "Front Level Group 2"

Definition at line 99 of file graphic.h.

◆ GR_ATT_FRONT_LEVEL3

#define GR_ATT_FRONT_LEVEL3   "Front Level Group 3"

Definition at line 98 of file graphic.h.

◆ GR_ATT_FRONT_MAP1

#define GR_ATT_FRONT_MAP1   "Front Level Map 1"

Definition at line 106 of file graphic.h.

◆ GR_ATT_FRONT_MAP2

#define GR_ATT_FRONT_MAP2   "Front Level Map 2"

Definition at line 107 of file graphic.h.

◆ GR_ATT_FRONT_MAP3

#define GR_ATT_FRONT_MAP3   "Front Level Map 3"

Definition at line 108 of file graphic.h.

◆ GR_ATT_GGRAPH

#define GR_ATT_GGRAPH   "G graph"

Definition at line 73 of file graphic.h.

◆ GR_ATT_LEADER

#define GR_ATT_LEADER   "leader board"

Definition at line 71 of file graphic.h.

◆ GR_ATT_LODFACTOR

#define GR_ATT_LODFACTOR   "LOD Factor"

Definition at line 91 of file graphic.h.

◆ GR_ATT_MAP

#define GR_ATT_MAP   "map mode"

Definition at line 67 of file graphic.h.

◆ GR_ATT_MAXPOINTBYSTRIP

#define GR_ATT_MAXPOINTBYSTRIP   "skid length"

Definition at line 88 of file graphic.h.

◆ GR_ATT_MAXSTRIPBYWHEEL

#define GR_ATT_MAXSTRIPBYWHEEL   "skid value"

Definition at line 87 of file graphic.h.

◆ GR_ATT_MIRROR

#define GR_ATT_MIRROR   "enable mirror"

Definition at line 66 of file graphic.h.

◆ GR_ATT_NB_SCREENS

#define GR_ATT_NB_SCREENS   "number of screens"

Definition at line 93 of file graphic.h.

◆ GR_ATT_NBLEADER

#define GR_ATT_NBLEADER   "Max leaders entries"

Definition at line 75 of file graphic.h.

◆ GR_ATT_PROXTHLD

#define GR_ATT_PROXTHLD   "proximity threshold"

Definition at line 80 of file graphic.h.

◆ GR_ATT_REAR_GLOBAL

#define GR_ATT_REAR_GLOBAL   "Rear Level Group Global"

Definition at line 101 of file graphic.h.

◆ GR_ATT_REAR_LEVEL1

#define GR_ATT_REAR_LEVEL1   "Rear Level Group 1"

Definition at line 104 of file graphic.h.

◆ GR_ATT_REAR_LEVEL2

#define GR_ATT_REAR_LEVEL2   "Rear Level Group 2"

Definition at line 103 of file graphic.h.

◆ GR_ATT_REAR_LEVEL3

#define GR_ATT_REAR_LEVEL3   "Rear Level Group 3"

Definition at line 102 of file graphic.h.

◆ GR_ATT_REAR_MAP1

#define GR_ATT_REAR_MAP1   "Rear Level Map 1"

Definition at line 109 of file graphic.h.

◆ GR_ATT_REAR_MAP2

#define GR_ATT_REAR_MAP2   "Rear Level Map 2"

Definition at line 110 of file graphic.h.

◆ GR_ATT_REAR_MAP3

#define GR_ATT_REAR_MAP3   "Rear Level Map 3"

Definition at line 111 of file graphic.h.

◆ GR_ATT_SKIDDELTAT

#define GR_ATT_SKIDDELTAT   "skid interval"

Definition at line 89 of file graphic.h.

◆ GR_ATT_SMOKEDELTAT

#define GR_ATT_SMOKEDELTAT   "smoke interval"

Definition at line 84 of file graphic.h.

◆ GR_ATT_SMOKEDLIFE

#define GR_ATT_SMOKEDLIFE   "smoke duration"

Definition at line 85 of file graphic.h.

◆ GR_ATT_SMOKENB

#define GR_ATT_SMOKENB   "smoke value"

Definition at line 83 of file graphic.h.

◆ GR_ATT_SOUND_STATE

#define GR_ATT_SOUND_STATE   "state"

Definition at line 46 of file graphic.h.

◆ GR_ATT_SOUND_STATE_DISABLED

#define GR_ATT_SOUND_STATE_DISABLED   "disabled"

Definition at line 49 of file graphic.h.

◆ GR_ATT_SOUND_STATE_OPENAL

#define GR_ATT_SOUND_STATE_OPENAL   "openal"

Definition at line 48 of file graphic.h.

◆ GR_ATT_SOUND_STATE_PLIB

#define GR_ATT_SOUND_STATE_PLIB   "plib"

Definition at line 47 of file graphic.h.

◆ GR_ATT_SOUND_VOLUME

#define GR_ATT_SOUND_VOLUME   "volume"

Definition at line 50 of file graphic.h.

◆ GR_ATT_TEXTURECOMPRESSION

#define GR_ATT_TEXTURECOMPRESSION   "texture compression ARB"

Definition at line 53 of file graphic.h.

◆ GR_ATT_TEXTURECOMPRESSION_DISABLED

#define GR_ATT_TEXTURECOMPRESSION_DISABLED   "disabled"

Definition at line 55 of file graphic.h.

◆ GR_ATT_TEXTURECOMPRESSION_ENABLED

#define GR_ATT_TEXTURECOMPRESSION_ENABLED   "enabled"

Definition at line 54 of file graphic.h.

◆ GR_ATT_TEXTURESIZE

#define GR_ATT_TEXTURESIZE   "user texture sizelimit"

Definition at line 61 of file graphic.h.

◆ GR_ATT_WHEELRENDERING

#define GR_ATT_WHEELRENDERING   "wheel rendering"

Definition at line 57 of file graphic.h.

◆ GR_ATT_WHEELRENDERING_DETAILED

#define GR_ATT_WHEELRENDERING_DETAILED   "detailed"

Definition at line 58 of file graphic.h.

◆ GR_ATT_WHEELRENDERING_SIMPLE

#define GR_ATT_WHEELRENDERING_SIMPLE   "simple"

Definition at line 59 of file graphic.h.

◆ GR_PARAM_FILE

#define GR_PARAM_FILE   "config/graph.xml"

Definition at line 42 of file graphic.h.

◆ GR_SCT_DISPMODE

#define GR_SCT_DISPMODE   "Display Mode"

Definition at line 63 of file graphic.h.

◆ GR_SCT_GLFEATURES

#define GR_SCT_GLFEATURES   "OpenGL Features"

Definition at line 52 of file graphic.h.

◆ GR_SCT_GRAPHIC

#define GR_SCT_GRAPHIC   "Graphic"

Definition at line 82 of file graphic.h.

◆ GR_SCT_PLAYABLE_DOV

#define GR_SCT_PLAYABLE_DOV   "Playable Cameras Distance of Views"

Definition at line 96 of file graphic.h.

◆ GR_SCT_SOUND

#define GR_SCT_SOUND   "Sound Settings"

Definition at line 45 of file graphic.h.

◆ GR_SCT_TVDIR

#define GR_SCT_TVDIR   "TV Director View"

Definition at line 77 of file graphic.h.

◆ GR_SOUND_PARM_CFG

#define GR_SOUND_PARM_CFG   "config/sound.xml"

Definition at line 44 of file graphic.h.

◆ GR_VIEW_PART

#define GR_VIEW_PART   1 /* partial screen view (scissor test) */

Definition at line 119 of file graphic.h.

◆ GR_VIEW_STD

#define GR_VIEW_STD   0 /* full screen view */

Definition at line 118 of file graphic.h.

◆ GRX_IDENT

#define GRX_IDENT   0

Definition at line 40 of file graphic.h.

Typedef Documentation

◆ tfGraphicBendCar

typedef void(* tfGraphicBendCar) (int, sgVec3, sgVec3, int)

Definition at line 169 of file graphic.h.