SpriteDraw struct
Frame of a sprite drawn in the level.
Public variables
-
Resources::
GenericGraphicResource* Graphics - Graphics with the frame.
-
std::
int32_t Cell - Frame of the graphics.
- float X
- Position of the hotspot.
- float Y
-
std::
int8_t Direction - Direction,
SPRITE::Direction. - float ScaleX
- Scale, negative flips.
- float ScaleY
-
std::
int32_t Angle - Angle, 1024 is a full turn.
-
std::
uint32_t Mode - Sprite mode (
SPRITE::Mode) and its parameter. -
std::
uint8_t Param -
std::
uint16_t Z - Depth.
-
std::
int32_t PaletteOffset - Palette offset a palette-indexed frame is drawn with, see LevelScriptLoader::
GetSpritePaletteOffset(). -
Actors::
ActorBase* Anchor - Object the position is relative to, where it is when it's drawn,
nullptrfor the level. - bool TranslucentFrame
- The frame is
transparent, see AnimationTables::ResolveFrame(). -
std::
int32_t VineLength - Length of a swinging vine drawn of the frame from the position down, 0 for a plain sprite.
-
std::
int32_t VineCurvature - Curvature of the swinging vine.