Jazz2::Tiles::LayerDescription struct

Describes the configuration of a tile map layer.

Holds the parallax and rendering properties of a single layer — its depth, per-axis scroll and auto-scroll speeds, scroll offsets, repeat flags, speed models and the renderer type with its color parameter. One is stored in each TileMapLayer and drives how that layer is positioned and drawn relative to the camera.

Public variables

std::uint16_t Depth
Layer depth (Z position).
float SpeedX
Horizontal speed.
float SpeedY
Vertical speed.
float AutoSpeedX
Horizontal auto speed.
float AutoSpeedY
Vertical auto speed.
float OffsetX
Horizontal scroll offset.
float OffsetY
Vertical scroll offset.
bool RepeatX
Whether layer should repeat horizontally.
bool RepeatY
Whether layer should repeat vertically.
bool UseInherentOffset
Whether inherent offset should be used.
LayerSpeedModel SpeedModelX
Horizontal speed model.
LayerSpeedModel SpeedModelY
Vertical speed model.
LayerRendererType RendererType
Layer renderer type.
Vector4f Color
Layer color parameter.