Jazz2::Tiles::TileMap::DestructibleDebris struct

Describes a visual debris (particle effect).

Public variables

Vector2f Pos
Position.
std::uint16_t Depth
Depth (layer).
Vector2f Size
Size of the drawn area.
Vector2f FrameOffset
Displacement of the drawn area from the centre of its logical frame cell.
Vector2f Speed
Speed.
Vector2f Acceleration
Acceleration.
float Scale
Scale.
float ScaleSpeed
Scale change speed.
float Angle
Angle.
float AngleSpeed
Angle change speed.
float Alpha
Alpha.
float AlphaSpeed
Alpha change speed.
float Time
Time remaining until disposal.
float TexScaleX
Texture horizontal scale.
float TexBiasX
Texture horizontal bias.
float TexScaleY
Texture vertical scale.
float TexBiasY
Texture vertical bias.
Texture* DiffuseTexture
Diffuse texture.
std::int32_t PaletteOffset
Flat palette offset when DiffuseTexture is an indexed sprite.
DebrisFlags Flags
Behavior flags.

Variable documentation

Vector2f Jazz2::Tiles::TileMap::DestructibleDebris::FrameOffset

Displacement of the drawn area from the centre of its logical frame cell.

Zero for debris that is its own little quad. A trimmed sprite frame covers less than its cell, so drawing it needs to know where inside that cell it belongs - otherwise the frame is stretched over the whole cell (see GenericGraphicResource::GetFrameOffset()).

std::int32_t Jazz2::Tiles::TileMap::DestructibleDebris::PaletteOffset

Flat palette offset when DiffuseTexture is an indexed sprite.

The sprite is recolored at draw time. -1 when the texture holds baked colors (e.g., a tileset texture) and must use the plain Sprite shader.