TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
graphic.h
Go to the documentation of this file.
1/***************************************************************************
2
3 file : graphic.h
4 created : Sun Jan 30 22:58:45 CET 2000
5 copyright : (C) 2000-2026 by Eric EspiƩ, Bernhard Wymann
6 email : berniw@bluewin.ch
7
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19
20#ifndef _GRAPHV1_H_
21#define _GRAPHV1_H_
22
28
34
35#include <track.h>
36#include <car.h>
37
38#define GRX_IDENT 0
39
40#define GR_PARAM_FILE "config/graph.xml"
41
42#define GR_SOUND_PARM_CFG "config/sound.xml"
43#define GR_SCT_SOUND "Sound Settings"
44#define GR_ATT_SOUND_STATE "state"
45#define GR_ATT_SOUND_STATE_PLIB "plib"
46#define GR_ATT_SOUND_STATE_OPENAL "openal"
47#define GR_ATT_SOUND_STATE_DISABLED "disabled"
48#define GR_ATT_SOUND_VOLUME "volume"
49
50#define GR_SCT_GLFEATURES "OpenGL Features"
51#define GR_ATT_TEXTURECOMPRESSION "texture compression ARB"
52#define GR_ATT_TEXTURECOMPRESSION_ENABLED "enabled"
53#define GR_ATT_TEXTURECOMPRESSION_DISABLED "disabled"
54
55#define GR_ATT_TEXTUREANISOTROPY "texture anisotropic filtering"
56
57#define GR_ATT_WHEELRENDERING "wheel rendering"
58#define GR_ATT_WHEELRENDERING_DETAILED "detailed"
59#define GR_ATT_WHEELRENDERING_SIMPLE "simple"
60
61#define GR_ATT_TEXTURESIZE "user texture sizelimit"
62
63#define GR_SCT_DISPMODE "Display Mode"
64#define GR_ATT_CAM "camera"
65#define GR_ATT_CAM_HEAD "camera head list"
66#define GR_ATT_MIRROR "enable mirror"
67#define GR_ATT_MAP "map mode"
68#define GR_ATT_FOVY "fovy"
69#define GR_ATT_BOARD "driver board"
70#define GR_ATT_COUNTER "driver counter"
71#define GR_ATT_LEADER "leader board"
72#define GR_ATT_DEBUG "debug info"
73#define GR_ATT_GGRAPH "G graph"
74#define GR_ATT_ARCADE "arcade"
75#define GR_ATT_NBLEADER "Max leaders entries"
76
77#define GR_SCT_TVDIR "TV Director View"
78#define GR_ATT_CHGCAMINT "change camera interval"
79#define GR_ATT_EVTINT "event interval"
80#define GR_ATT_PROXTHLD "proximity threshold"
81
82#define GR_SCT_GRAPHIC "Graphic"
83#define GR_ATT_SMOKENB "smoke value"
84#define GR_ATT_SMOKEDELTAT "smoke interval"
85#define GR_ATT_SMOKEDLIFE "smoke duration"
86
87#define GR_ATT_MAXSTRIPBYWHEEL "skid value"
88#define GR_ATT_MAXPOINTBYSTRIP "skid length"
89#define GR_ATT_SKIDDELTAT "skid interval"
90#define GR_ATT_FOVFACT "fov factor"
91#define GR_ATT_LODFACTOR "LOD Factor"
92
93#define GR_ATT_NB_SCREENS "number of screens"
94#define GR_ATT_CUR_DRV "current driver"
95
96/* graphic functions prototypes */
97
98struct Situation;
99
100#define GR_VIEW_STD 0 /* full screen view */
101#define GR_VIEW_PART 1 /* partial screen view (scissor test) */
102
108
113typedef int (*tfGraphicInitCars)(struct Situation* s);
114
126typedef int (*tfGraphicInitView)(int x, int y, int width, int height, int flag, void * screen);
127
133typedef int (*tfGraphicRefresh)(struct Situation *s);
134
138typedef void (*tfGraphicShutdwnCars)(void);
139
143typedef void (*tfGraphicShutdwnTrack)(void);
144
148typedef void (*tGraphicMuteForMenu)(void);
149
150class ssgEntity;
151typedef void (*tfGraphicBendCar) (int /*index*/, sgVec3 /*poc*/, sgVec3 /*force*/, int /*cnt*/);
152
166
167
168
169
170#endif /* _GRAPHV1_H_ */
171
172
static Vector y[4]
Definition Convex.cpp:56
This is the car structure.
void(* tfGraphicBendCar)(int, sgVec3, sgVec3, int)
Definition graphic.h:151
void(* tfGraphicShutdwnTrack)(void)
Shut down and release track model.
Definition graphic.h:143
int(* tfGraphicRefresh)(struct Situation *s)
Render scene based on given situation.
Definition graphic.h:133
int(* tfGraphicInitView)(int x, int y, int width, int height, int flag, void *screen)
Init viewport for rendering.
Definition graphic.h:126
int(* tfGraphicInitCars)(struct Situation *s)
Load and set up car models for rendering.
Definition graphic.h:113
int(* tfGraphicInitTrack)(tTrack *track)
Load and set up track model for rendering.
Definition graphic.h:107
void(* tGraphicMuteForMenu)(void)
Set output audio gain to 0 to mute sound, used for menus during race, tfGraphicRefresh will reset the...
Definition graphic.h:148
void(* tfGraphicShutdwnCars)(void)
Shut down and release car models.
Definition graphic.h:138
cars situation used to inform the GUI and the drivers
Definition raceman.h:84
Interface Structure for Graphic Renering Module.
Definition graphic.h:156
tGraphicMuteForMenu muteformenu
Definition graphic.h:163
tfGraphicInitCars initcars
Definition graphic.h:159
tfGraphicShutdwnTrack shutdowntrack
Definition graphic.h:162
tfGraphicRefresh refresh
Definition graphic.h:160
tfGraphicShutdwnCars shutdowncars
Definition graphic.h:161
tfGraphicInitView initview
Definition graphic.h:158
tfGraphicInitTrack inittrack
Definition graphic.h:157
Track structure.
Definition track.h:533
Track Structure and Track Loader Module Definition.
int track(tModInfo *modInfo)
Definition trackitf.cpp:85