coastline 0.0.4
Loading...
Searching...
No Matches
coastline::CarShadow Struct Reference

The shadow of a car on the track, as RenderTrackInstance() lays its texture on the ground under the car: 1024 across the texture, centred under the car, along and across its heading. More...

#include <scenerenderer.h>

Collaboration diagram for coastline::CarShadow:

Public Attributes

const RenderTexture * texture = nullptr
float x = 0.0f
float y = 0.0f
float along = 0.0f
float across = 0.0f
std::array< float, 2 > forward {1.0f, 0.0f}
std::array< float, 4 > color {}
std::vector< int > instances

Detailed Description

The shadow of a car on the track, as RenderTrackInstance() lays its texture on the ground under the car: 1024 across the texture, centred under the car, along and across its heading.

Member Data Documentation

◆ texture

const RenderTexture* coastline::CarShadow::texture = nullptr

The texture of the shadow, its alpha the shade.

◆ x

float coastline::CarShadow::x = 0.0f

The place of the car across the world.

◆ y

float coastline::CarShadow::y = 0.0f

The place of the car along the world.

◆ along

float coastline::CarShadow::along = 0.0f

The units of the texture for each unit along the car.

◆ across

float coastline::CarShadow::across = 0.0f

The units of the texture for each unit across the car.

◆ forward

std::array<float, 2> coastline::CarShadow::forward {1.0f, 0.0f}

The heading of the car on the ground.

◆ color

std::array<float, 4> coastline::CarShadow::color {}

The colour the shade blends towards.

◆ instances

std::vector<int> coastline::CarShadow::instances

The instances of the track the shadow falls on.


The documentation for this struct was generated from the following file: