98 void DrawCar(
SceneRenderer &renderer,
const CarInView &view)
const;
Captured race geometry, cameras, and particles for interpolation between simulation steps.
Definition snapshot.h:18
std::array< float, 4 > ClearColor() const
void MoveFreeCamera(float seconds, const std::array< float, 3 > &movement, const std::array< float, 2 > &rotation)
Move the free camera independently of simulation time, including while paused.
bool FreeCameraEnabled() const
static std::unique_ptr< RaceView > Load(SceneRenderer &renderer, const std::filesystem::path &defaults, int track, std::span< const RaceCar > cars)
Read the models of a track and the cars of the import.
void Draw(SceneRenderer &renderer, float share) const
Draw each view of the race from the active camera of its vehicle, the views laid out as the race lays...
RaceView & operator=(const RaceView &)=delete
Prevent assignment of renderer-bound race resources.
RaceView(const RaceView &)=delete
Prevent copying renderer-bound race resources.
void ToggleFreeCamera()
Toggle a free camera initialised from the first viewport without changing race cameras.
~RaceView()
Release race rendering resources before the renderer's GPU device is destroyed.
The renderer of a frame.
Definition scenerenderer.h:467
Definition assetimport.h:11
float RaceFieldOfView(float fovy, float aspect, float scale=1.0f)
The vertical field of view of a view of the race on a frame.
The car of a vehicle of a race.
Definition raceview.h:23
int car
Definition raceview.h:24
bool otherLook
Whether the car draws in its other look, with its highlighted parts reflecting the sky in place of it...
Definition raceview.h:31
std::optional< std::filesystem::path > images
Path to a menu preview or custom-decal document supplying race images.
Definition raceview.h:28
std::array< std::uint8_t, 3 > paint
Definition raceview.h:25