Interface for graphic rendering of the simulation, the graphic module is discovered and loaded during runtime.
More...
|
| file | graphic.h |
| | Graphic Module Interface Definition.
|
| |
Interface for graphic rendering of the simulation, the graphic module is discovered and loaded during runtime.
◆ tfGraphicInitCars
| typedef int(* tfGraphicInitCars) (struct Situation *s) |
Load and set up car models for rendering.
- Parameters
-
Definition at line 131 of file graphic.h.
◆ tfGraphicInitTrack
Load and set up track model for rendering.
- Parameters
-
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] | x | X position of viewport |
| [in] | y | Y position of viewport |
| [in] | width | Width of viewport |
| [in] | height | Height of viewport |
| [in] | flag | Currently unused |
| [in] | screen | Screen (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
-
- 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.