102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
meshes.c File Reference

Go to the source code of this file.

Functions

void Graphics_MarkMeshDirty (struct Mesh_CmdList *cmd_list)
void Graphics_ProcessMeshCommands (struct Mesh_CmdList *cmd_list, struct Material_Node **material_nodes, void *owner_context)
void Graphics_UpdateMeshCommandState (struct Mesh_CmdList *cmd_list)
static void set_uv_rectangle (struct Math_UV8 uv[4], uint8_t u, uint8_t v, uint8_t width_minus_one, uint8_t height_minus_one)
static void swap_uvs (struct Math_UV8 *a, struct Math_UV8 *b)
void Graphics_SetPolygonUVs (struct Scene_Node *node, struct Graphics_Render_PolygonBatchRecord *out_batch, struct Material_TableEntry *polygon_data, int16_t uv_index_or_sentinel, struct Mesh_RuntimeVertex **polygon_vertices)
static void Graphics_ProjectFlatCorner (struct Graphics_ProjectedCorner *corner, int32_t x, int32_t z)
void Graphics_RenderFlatQuadCorners (struct Graphics_Render_FlatQuadActorView *actor, uint32_t xy0, uint32_t xy1, uint32_t xy2, uint32_t xy3)
BOOL Graphics_IsPolygonInDebugList (struct Graphics_Render_PolygonRenderRef *polygon_ref)
void Graphics_ComputeVertexColors (struct Mesh_RuntimeVertex *runtime_vertices, struct Graphics_Render_PolygonRenderRef *polygon_ref, uint32_t *out_colors)

Function Documentation

◆ Graphics_ComputeVertexColors()

void Graphics_ComputeVertexColors ( struct Mesh_RuntimeVertex * runtime_vertices,
struct Graphics_Render_PolygonRenderRef * polygon_ref,
uint32_t * out_colors )

Definition at line 557 of file meshes.c.

◆ Graphics_IsPolygonInDebugList()

BOOL Graphics_IsPolygonInDebugList ( struct Graphics_Render_PolygonRenderRef * polygon_ref)

Definition at line 515 of file meshes.c.

◆ Graphics_MarkMeshDirty()

void Graphics_MarkMeshDirty ( struct Mesh_CmdList * cmd_list)

Definition at line 33 of file meshes.c.

◆ Graphics_ProcessMeshCommands()

void Graphics_ProcessMeshCommands ( struct Mesh_CmdList * cmd_list,
struct Material_Node ** material_nodes,
void * owner_context )

Definition at line 70 of file meshes.c.

◆ Graphics_ProjectFlatCorner()

void Graphics_ProjectFlatCorner ( struct Graphics_ProjectedCorner * corner,
int32_t x,
int32_t z )
static

Definition at line 448 of file meshes.c.

◆ Graphics_RenderFlatQuadCorners()

void Graphics_RenderFlatQuadCorners ( struct Graphics_Render_FlatQuadActorView * actor,
uint32_t xy0,
uint32_t xy1,
uint32_t xy2,
uint32_t xy3 )

Definition at line 458 of file meshes.c.

◆ Graphics_SetPolygonUVs()

void Graphics_SetPolygonUVs ( struct Scene_Node * node,
struct Graphics_Render_PolygonBatchRecord * out_batch,
struct Material_TableEntry * polygon_data,
int16_t uv_index_or_sentinel,
struct Mesh_RuntimeVertex ** polygon_vertices )

Definition at line 335 of file meshes.c.

◆ Graphics_UpdateMeshCommandState()

void Graphics_UpdateMeshCommandState ( struct Mesh_CmdList * cmd_list)

Definition at line 109 of file meshes.c.

◆ set_uv_rectangle()

void set_uv_rectangle ( struct Math_UV8 uv[4],
uint8_t u,
uint8_t v,
uint8_t width_minus_one,
uint8_t height_minus_one )
static

Definition at line 315 of file meshes.c.

◆ swap_uvs()

void swap_uvs ( struct Math_UV8 * a,
struct Math_UV8 * b )
static

Definition at line 327 of file meshes.c.