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

FIGHTSTG's drawing helpers: a projected point and quads on a layer. More...

#include "battle/battle_mode.h"
#include "engine/gte.h"
Include dependency graph for draw.c:

Go to the source code of this file.

Functions

void FIGHTSTG_projectPoint (Layer *layer, SVECTOR *pos, ShortVec3 *out)
 Projects pos to the screen: its x and y, and its depth in the layer's ordering table.
 
void FIGHTSTG_drawShadedQuad (s32 layerId, s32 depth, DVECTOR *xy, CVECTOR *colors, s32 semi)
 A Gouraud-shaded quad on a layer, blended when semi is set; the match depends on setSemiTrans inside the if and on poly moving on past it.
 
void FIGHTSTG_drawQuad (s32 layerId, s32 depth, DVECTOR *xy, CVECTOR *colors)
 A Gouraud-shaded quad on a layer.
 
void FIGHTSTG_drawBlendedQuad (s32 layerId, s32 depth, DVECTOR *xy, CVECTOR *colors)
 A Gouraud-shaded quad on a layer, blended.
 

Detailed Description

FIGHTSTG's drawing helpers: a projected point and quads on a layer.

Definition in file draw.c.

Function Documentation

◆ FIGHTSTG_projectPoint()

void FIGHTSTG_projectPoint ( Layer *  layer,
SVECTOR *  pos,
ShortVec3 *  out 
)

Projects pos to the screen: its x and y, and its depth in the layer's ordering table.

Definition at line 8 of file draw.c.

◆ FIGHTSTG_drawShadedQuad()

void FIGHTSTG_drawShadedQuad ( s32  layerId,
s32  depth,
DVECTOR *  xy,
CVECTOR *  colors,
s32  semi 
)

A Gouraud-shaded quad on a layer, blended when semi is set; the match depends on setSemiTrans inside the if and on poly moving on past it.

Definition at line 28 of file draw.c.

Referenced by FIGHTSTG_drawBlendedQuad(), and FIGHTSTG_drawQuad().

Here is the caller graph for this function:

◆ FIGHTSTG_drawQuad()

void FIGHTSTG_drawQuad ( s32  layerId,
s32  depth,
DVECTOR *  xy,
CVECTOR *  colors 
)

A Gouraud-shaded quad on a layer.

the functions of FIGHTSTG_battle, FIGHTSTG_action and FIGHTSTG_battleFuncs

Definition at line 64 of file draw.c.

Here is the call graph for this function:

◆ FIGHTSTG_drawBlendedQuad()

void FIGHTSTG_drawBlendedQuad ( s32  layerId,
s32  depth,
DVECTOR *  xy,
CVECTOR *  colors 
)

A Gouraud-shaded quad on a layer, blended.

Definition at line 69 of file draw.c.

Here is the call graph for this function: