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 113 of file graphic.h.
◆ tfGraphicInitTrack
Load and set up track model for rendering.
- Parameters
-
Definition at line 107 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 126 of file graphic.h.
◆ tfGraphicRefresh
| typedef int(* tfGraphicRefresh) (struct Situation *s) |
Render scene based on given situation.
- Parameters
-
- Returns
- 0, unsued
Definition at line 133 of file graphic.h.
◆ tfGraphicShutdwnCars
| typedef void(* tfGraphicShutdwnCars) (void) |
Shut down and release car models.
Definition at line 138 of file graphic.h.
◆ tfGraphicShutdwnTrack
| typedef void(* tfGraphicShutdwnTrack) (void) |
Shut down and release track model.
Definition at line 143 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 148 of file graphic.h.