Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
sprite_anim.c File Reference

FIGHTSTG's sprite animations, the frames of a 2D effect. More...

Include dependency graph for sprite_anim.c:

Go to the source code of this file.

Functions

void FIGHTSTG_nop (void)
 Empty, and nothing calls it.
 
void FIGHTSTG_drawSpriteAnim (void *arg, Layer *layer)
 A layer callback that draws a sprite animation's frame: at its projected position, or at a screen position when its z is 0x7FFF or -1, with its scale, CLUT row and rotation.
 
void FIGHTSTG_updateSpriteAnim (SpriteAnim *task)
 A frame-by-frame animation of a 2D effect: reads its flags, stride, duration and first values from data, then each frame the values its flags pick (frame, CLUT row, offset, scale, rotation) and has FIGHTSTG_drawSpriteAnim draw it, until its duration is over.
 
SpriteAnim * FIGHTSTG_createSpriteAnim (s16 *data, SVECTOR *pos, s32 sheet, Vec2 *texPos, s32 layerId)
 Creates a sprite animation from data at pos, with frames of sheet (textures at texPos) on layer layerId.
 

Detailed Description

FIGHTSTG's sprite animations, the frames of a 2D effect.

Definition in file sprite_anim.c.

Function Documentation

◆ FIGHTSTG_nop()

void FIGHTSTG_nop ( void  )

Empty, and nothing calls it.

Definition at line 6 of file sprite_anim.c.

◆ FIGHTSTG_drawSpriteAnim()

void FIGHTSTG_drawSpriteAnim ( void *  arg,
Layer *  layer 
)

A layer callback that draws a sprite animation's frame: at its projected position, or at a screen position when its z is 0x7FFF or -1, with its scale, CLUT row and rotation.

The match depends on taking the task as void *

Definition at line 13 of file sprite_anim.c.

Referenced by FIGHTSTG_updateSpriteAnim().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_updateSpriteAnim()

void FIGHTSTG_updateSpriteAnim ( SpriteAnim *  task)

A frame-by-frame animation of a 2D effect: reads its flags, stride, duration and first values from data, then each frame the values its flags pick (frame, CLUT row, offset, scale, rotation) and has FIGHTSTG_drawSpriteAnim draw it, until its duration is over.

Definition at line 51 of file sprite_anim.c.

Referenced by FIGHTSTG_createSpriteAnim().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_createSpriteAnim()

SpriteAnim * FIGHTSTG_createSpriteAnim ( s16 *  data,
SVECTOR *  pos,
s32  sheet,
Vec2 *  texPos,
s32  layerId 
)

Creates a sprite animation from data at pos, with frames of sheet (textures at texPos) on layer layerId.

Definition at line 115 of file sprite_anim.c.

Referenced by FIGHTSTG_updateSpriteEffect().

Here is the call graph for this function:
Here is the caller graph for this function: