struct SPR
An animated sprite: its image and shadow, scale, rotation, size and up to four sprite animations.
Declared in sprite.h.
Fields
| Name | Description | |
|---|---|---|
ANIMATION_SPR_PART | image | |
ANIMATION_SPR_PART | shadow | Its shadow, shown while flags has SPRITE_FLAG_SHADOW. |
FIXED | scale | 16.16 fixed point, toFIXED(1) full size. |
Uint8 | slot | VRAM cache entry holding its tiles. |
Uint8 | retainCacheEntry : 1 | Keeps the VRAM cache entry when it is released or off screen. |
Uint8 | useOwnScale : 1 | Drawn at its own scale, not scaled by distance (fixed camera). |
Uint8 | unusedFlags : 6 | No code names them. |
Uint16 | rotation | 1/65536 turns. |
Uint8 | width | Pixels; zero marks a free sprite. |
Uint8 | height | Pixels. |
Sint8 | offsetX | Pixels. |
Sint8 | offsetY | Pixels. |
Uint8 | lastNo | The animation number last selected, which selecting again skips. |
Uint8 | dirty | Nonzero redraws its pixels into VRAM when next drawn. |
Uint8 | flags | SPR_FLAG bits: SPRITE_FLAG_OUTLINED and SPRITE_FLAG_SHADOW (set when created). |
Uint8 | count | Layers in use, up to the last one present. |
SPR_ANIMATION * | entries [4] | Its layers; empty ones null. |
Description
An animated sprite: its image and shadow, scale, rotation, size and up to four sprite animations.
struct SPR
Referenced by btAutoBattleRunAttackOrItem(), btEffectCreateSprites(), btEffectRunGaia(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunRamses(), btEffectRunStarfieldFall(), btEffectTintBattler(), btHighlightSetSpriteMode(), btMotionPlayFall(), btMotionProjectCursorPoint(), btMotionProjectPos(), btMotionProjectScaledPos(), btMotionShowDowned(), btObjectDestroySprites(), btObjectSetColorMode(), btObjectSpawnObjectsForList(), btObjectUpdateSpritePriorities(), btPlaybackRun(), btSpriteDetachScripts(), btStagingRunAttack(), btStagingRunFullScreen(), btStagingRunItem(), btStagingRunPlainAttack(), btStagingRunPsynergyCast(), btStatusIconCycle(), btUnitProjectToScreen(), fdActorAddSpriteAnimation(), fdActorCopyGraphics(), fdActorCreate(), fdActorCycleSpriteColors(), fdActorMoveOnWorldMap(), fdActorRelease(), fdActorRestore(), fdActorSetBlendMode(), fdActorSetFirstSpriteAnimation(), fdActorSetLayersColorMode(), fdActorSetRevealSpriteColor(), fdActorSetSpriteColor(), fdActorSetSpritePriority(), fdActorSetSpriteScale(), fdActorShowEmoteById(), fdActorSnapshot(), fdActorSystemConfigure(), fdActorSystemPlaceSprites(), fdActorUpdateBlink(), fdActorUpdatePlayerControl(), fdActorWaitForAnimationChange(), fdDjinnRunMercuryJoinEffect(), fdEffectBlinkAvoidCaster() and 140 more.
Definition at line 158 of file sprite.h.
Fields in detail
image
ANIMATION_SPR_PART image
shadow
ANIMATION_SPR_PART shadow
Its shadow, shown while flags
has SPRITE_FLAG_SHADOW.
scale
FIXED scale
16.16 fixed point, toFIXED(1)
full size.
slot
Uint8 slot
VRAM cache entry holding its
tiles.
retainCacheEntry
Uint8 retainCacheEntry : 1
Keeps the VRAM cache entry when
it is released or off screen.
useOwnScale
Uint8 useOwnScale : 1
Drawn at its own scale, not scaled by distance (fixed camera).
unusedFlags
Uint8 unusedFlags : 6
No code names them.
rotation
Uint16 rotation
1/65536 turns.
width
Uint8 width
Pixels; zero marks a free sprite.
height
Uint8 height
Pixels.
offsetX
Sint8 offsetX
Pixels.
offsetY
Sint8 offsetY
Pixels.
lastNo
Uint8 lastNo
The animation number last selected, which selecting again skips.
dirty
Uint8 dirty
Nonzero redraws its pixels into
VRAM when next drawn.
flags
Uint8 flags
SPR_FLAG bits:
SPRITE_FLAG_OUTLINED and
SPRITE_FLAG_SHADOW (set when
created).
count
Uint8 count
Layers in use, up to the last one present.
entries
SPR_ANIMATION *entries[4]
Its layers; empty ones null.