Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
Mesh Struct Reference

Draws one bone of a Model (FIGHTSTG_createMesh), from the parts of an archive. More...

#include <battle/battle_mode/model.h>

Collaboration diagram for Mesh:
[legend]

Data Fields

s32 id
 
s32 key1
 
s32 key2
 
s32 state
 
s32 substate
 
s32 step
 
s32 counter
 
s32 paused
 
s32 childCount
 
void * children
 
void(* setState )(struct Mesh *task, s32 state)
 
void(* setSubstate )(struct Mesh *task, s32 substate)
 
void(* setStep )(struct Mesh *task, s32 step)
 
void(* setCounter )(struct Mesh *task, s32 counter)
 
void(* nextState )(struct Mesh *task)
 
void(* nextSubstate )(struct Mesh *task)
 
void(* nextStep )(struct Mesh *task)
 
void(* tickCounter )(struct Mesh *task)
 
void(* update )()
 
void(* destroy )(struct Mesh *task)
 
s32 noBoundsCheck
 
s32 colorMode
 Model.setColor's.
 
CVECTOR color
 
void * archive
 
ShortVec3 * vertices
 the count in [0].x, then the vertices
 
ShortVec3 * normals
 the count in [0].x, then the normals
 
u8 * commands
 see MeshDrawState
 
ShortVec3 * bounds
 9 points (FIGHTSTG_isMeshOnScreen)
 
Vec2 texPos
 
s32 * screen
 where its vertices land on screen
 
s32 * depth
 and their depths in the ordering table
 
CVECTOR * colors
 its normals' colors under the lights
 
MATRIX matrix
 
void(* draw )(struct Mesh *mesh, s32 layerId, MATRIX *matrix)
 
void(* drawWireframe )(struct Mesh *mesh, s32 layerId, MATRIX *matrix)
 

Detailed Description

Draws one bone of a Model (FIGHTSTG_createMesh), from the parts of an archive.

Definition at line 21 of file model.h.

Field Documentation

◆ id

s32 Mesh::id

Definition at line 22 of file model.h.

◆ key1

s32 Mesh::key1

Definition at line 22 of file model.h.

◆ key2

s32 Mesh::key2

Definition at line 22 of file model.h.

◆ state

s32 Mesh::state

Definition at line 22 of file model.h.

Referenced by FIGHTSTG_updateMesh().

◆ substate

s32 Mesh::substate

Definition at line 22 of file model.h.

◆ step

s32 Mesh::step

Definition at line 22 of file model.h.

◆ counter

s32 Mesh::counter

Definition at line 22 of file model.h.

◆ paused

s32 Mesh::paused

Definition at line 22 of file model.h.

◆ childCount

s32 Mesh::childCount

Definition at line 22 of file model.h.

◆ children

void* Mesh::children

Definition at line 22 of file model.h.

◆ setState

void(* Mesh::setState) (struct Mesh *task, s32 state)

Definition at line 22 of file model.h.

◆ setSubstate

void(* Mesh::setSubstate) (struct Mesh *task, s32 substate)

Definition at line 22 of file model.h.

◆ setStep

void(* Mesh::setStep) (struct Mesh *task, s32 step)

Definition at line 22 of file model.h.

◆ setCounter

void(* Mesh::setCounter) (struct Mesh *task, s32 counter)

Definition at line 22 of file model.h.

◆ nextState

void(* Mesh::nextState) (struct Mesh *task)

Definition at line 22 of file model.h.

◆ nextSubstate

void(* Mesh::nextSubstate) (struct Mesh *task)

Definition at line 22 of file model.h.

◆ nextStep

void(* Mesh::nextStep) (struct Mesh *task)

Definition at line 22 of file model.h.

◆ tickCounter

void(* Mesh::tickCounter) (struct Mesh *task)

Definition at line 22 of file model.h.

◆ update

void(* Mesh::update) ()

Definition at line 22 of file model.h.

◆ destroy

void(* Mesh::destroy) (struct Mesh *task)

Definition at line 22 of file model.h.

◆ noBoundsCheck

s32 Mesh::noBoundsCheck

Definition at line 23 of file model.h.

Referenced by FIGHTSTG_isMeshOnScreen(), and FIGHTSTG_setBoneNoBoundsCheck().

◆ colorMode

s32 Mesh::colorMode

Model.setColor's.

Definition at line 24 of file model.h.

Referenced by FIGHTSTG_drawMesh(), and FIGHTSTG_setModelColor().

◆ color

CVECTOR Mesh::color

Definition at line 25 of file model.h.

Referenced by FIGHTSTG_drawMesh(), and FIGHTSTG_setModelColor().

◆ archive

void* Mesh::archive

Definition at line 26 of file model.h.

Referenced by FIGHTSTG_createMesh().

◆ vertices

ShortVec3* Mesh::vertices

the count in [0].x, then the vertices

Definition at line 27 of file model.h.

Referenced by FIGHTSTG_createMesh(), and FIGHTSTG_projectMesh().

◆ normals

ShortVec3* Mesh::normals

the count in [0].x, then the normals

Definition at line 28 of file model.h.

Referenced by FIGHTSTG_createMesh(), and FIGHTSTG_lightMesh().

◆ commands

u8* Mesh::commands

see MeshDrawState

Definition at line 29 of file model.h.

Referenced by FIGHTSTG_createMesh(), FIGHTSTG_drawMesh(), and FIGHTSTG_drawMeshWireframe().

◆ bounds

ShortVec3* Mesh::bounds

9 points (FIGHTSTG_isMeshOnScreen)

Definition at line 30 of file model.h.

Referenced by FIGHTSTG_createMesh(), and FIGHTSTG_isMeshOnScreen().

◆ texPos

Vec2 Mesh::texPos

Definition at line 31 of file model.h.

Referenced by FIGHTSTG_createMesh(), FIGHTSTG_drawMesh(), and FIGHTSTG_drawMeshWireframe().

◆ screen

s32* Mesh::screen

where its vertices land on screen

Definition at line 32 of file model.h.

Referenced by FIGHTSTG_drawMesh(), FIGHTSTG_drawMeshWireframe(), FIGHTSTG_projectMesh(), and FIGHTSTG_updateMesh().

◆ depth

s32* Mesh::depth

and their depths in the ordering table

Definition at line 33 of file model.h.

Referenced by FIGHTSTG_drawMesh(), FIGHTSTG_drawMeshWireframe(), FIGHTSTG_projectMesh(), and FIGHTSTG_updateMesh().

◆ colors

CVECTOR* Mesh::colors

its normals' colors under the lights

Definition at line 34 of file model.h.

Referenced by FIGHTSTG_drawMesh(), FIGHTSTG_drawMeshWireframe(), FIGHTSTG_lightMesh(), and FIGHTSTG_updateMesh().

◆ matrix

◆ draw

void(* Mesh::draw) (struct Mesh *mesh, s32 layerId, MATRIX *matrix)

Definition at line 36 of file model.h.

Referenced by FIGHTSTG_createMesh(), and FIGHTSTG_updateModel().

◆ drawWireframe

void(* Mesh::drawWireframe) (struct Mesh *mesh, s32 layerId, MATRIX *matrix)

Definition at line 37 of file model.h.

Referenced by FIGHTSTG_createMesh(), and FIGHTSTG_updateModel().


The documentation for this struct was generated from the following file: