struct AFFINE_TRANSFORM
The affine group. More…
Declared in definitions.h.
Fields
| Name | Description | |
|---|---|---|
Uint16 | scaleX | 8.8 fixed point, read signed: negative mirrors the sprite |
Uint16 | scaleY | 8.8 fixed point, read signed |
Uint16 | angle | 1/65536 turns |
Uint16 | padding | never read; keeps the struct 8 bytes |
Description
The affine group. Sprite rotation and scale, and the affine matrices handed out each tick. A sprite's rotation and scale: scales in 8.8 fixed point (256 is full size), the angle in 1/65536 turns.
struct AFFINE_TRANSFORM
Referenced by fdRenderApplyProjectedPlacement(), fdRenderPlaceProjectedSprite(), mnBattleTargetRunSelection(), mnIconMenuDrawIcons(), mnWindowSpritePulse(), mnWindowSpriteUpdateAll(), mnWindowSpriteUpdateScaleAnimation(), scColossoUpdateLettering() and syOAMMatrixAllocateFromTransform().
Definition at line 968 of file definitions.h.
Fields in detail
scaleX
Uint16 scaleX
8.8 fixed point, read signed: negative mirrors the sprite
scaleY
Uint16 scaleY
8.8 fixed point, read signed
angle
Uint16 angle
1/65536 turns
padding
Uint16 padding
never read; keeps the struct 8 bytes