struct AFFINE_TRANSFORM
A sprite's rotation and scale: scales in 8.8 fixed point (AFFINE_SCALE_ONE is full size), the angle in 1/65536 turns.
Declared in definitions.h.
Fields
| Name | Description | |
|---|---|---|
Uint16 | scaleX | 8.8 fixed point, read signed |
Uint16 | scaleY | 8.8 fixed point, read signed |
Uint16 | angle | 1/65536 turns |
Uint16 | padding | never read; keeps the struct 8 bytes |
Description
A sprite's rotation and scale: scales in 8.8 fixed point (AFFINE_SCALE_ONE is
full size), the angle in 1/65536 turns.
struct AFFINE_TRANSFORM
Referenced by fdEffectSpriteDraw(), fdHangingVineDraw(), fdRenderApplyProjectedPlacement(), fdRenderApplyProjectedPlacementAtDepth(), fdRopeDraw(), fdTightropeDraw(), mnBattleTargetRunSelection(), mnIconMenuDrawIcons(), mnWindowSpritePulse(), mnWindowSpriteUpdateAll(), mnWindowSpriteUpdateScaleAnimation(), scGabombaStatueDrawClock(), scGabombaStatueDrawRaisedBlocks(), scShamanVillageUpdateLettering() and syOAMMatrixAllocateFromTransform().
Definition at line 1025 of file definitions.h.
Fields in detail
scaleX
Uint16 scaleX
8.8 fixed point, read signed
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