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

FIGHTSTG's faces: a model's blinking eyes and its other face parts. More...

Include dependency graph for face.c:

Go to the source code of this file.

Functions

s32 FIGHTSTG_getEyesFrame (Face *task)
 The eyes' frame for the model's motion: 2 (closed) for motions 4 to 11, 1 for 2, else 0 (open)
 
void FIGHTSTG_moveFacePart (Face *task, DR_MOVE *prim, s32 part, s32 frame)
 Fills prim to copy part's frame of the face's texture over the part, in VRAM.
 
void FIGHTSTG_updateFace (Face *task)
 A fighter's face task: each frame, copies the eyes' frame (blinking at random while open) and the other parts' frames (a three-frame cycle) over the model's texture, for the parts whose frame changed.
 
Face * FIGHTSTG_createFace (Model *model, s32 fighter)
 Creates the face of fighter's model, with its parts (FIGHTSTG_fighterCache.getFace); none for fighter 0.
 

Detailed Description

FIGHTSTG's faces: a model's blinking eyes and its other face parts.

Definition in file face.c.

Function Documentation

◆ FIGHTSTG_getEyesFrame()

s32 FIGHTSTG_getEyesFrame ( Face *  task)

The eyes' frame for the model's motion: 2 (closed) for motions 4 to 11, 1 for 2, else 0 (open)

Definition at line 7 of file face.c.

Referenced by FIGHTSTG_updateFace().

Here is the caller graph for this function:

◆ FIGHTSTG_moveFacePart()

void FIGHTSTG_moveFacePart ( Face *  task,
DR_MOVE *  prim,
s32  part,
s32  frame 
)

Fills prim to copy part's frame of the face's texture over the part, in VRAM.

Definition at line 27 of file face.c.

Referenced by FIGHTSTG_updateFace().

Here is the caller graph for this function:

◆ FIGHTSTG_updateFace()

void FIGHTSTG_updateFace ( Face *  task)

A fighter's face task: each frame, copies the eyes' frame (blinking at random while open) and the other parts' frames (a three-frame cycle) over the model's texture, for the parts whose frame changed.

Definition at line 43 of file face.c.

Referenced by FIGHTSTG_createFace().

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

◆ FIGHTSTG_createFace()

Face * FIGHTSTG_createFace ( Model *  model,
s32  fighter 
)

Creates the face of fighter's model, with its parts (FIGHTSTG_fighterCache.getFace); none for fighter 0.

Definition at line 119 of file face.c.

Referenced by FIGHTSTG_updateModel().

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