Jazz2::Resources::FrameRect struct

Placement of a single frame in a tightly packed sprite sheet.

X, Y, W and H are the frame's area in the sheet. The offsets say where that area begins inside the frame's logical cell, which is what keeps the animation aligned: trimming away the transparent margin moves the content, and the offset moves the hotspot with it.

Public variables

std::uint16_t X
std::uint16_t Y
std::uint16_t W
std::uint16_t H
std::int16_t OffsetX
std::int16_t OffsetY