Jazz2::Compatibility::JJ2Anims::AnimFrameSection struct

Frame of an animation as an animation file stores it.

The spots are where the point lies in the frame, negated - the top left corner of the frame is at HotspotX, HotspotY from the hotspot.

Public variables

std::int16_t SizeX
Size of the frame in pixels.
std::int16_t SizeY
std::int16_t ColdspotX
Coldspot, the point the frame rests on the ground by.
std::int16_t ColdspotY
std::int16_t HotspotX
Hotspot, the point the frame is drawn at.
std::int16_t HotspotY
std::int16_t GunspotX
Gunspot, the point bullets leave from.
std::int16_t GunspotY
std::unique_ptr<std::uint8_t[]> ImageData
Palette indices of the frame, SizeX × SizeY of them, 0 is transparent.
std::int32_t ImageAddr
Where the image is in the image block of its set.
std::int32_t MaskAddr
Where the mask is in the image block of its set.
bool DrawTransparent
Whether the frame is drawn translucent.