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

Go to the source code of this file.

Functions

static int32_t transform_translation (const int16_t *row, const struct Math_Vec3I32 *position)
static int32_t project_offset (const int16_t *row, struct Math_Vec3I16 offset)
void Graphics_ProjectCorner (struct Graphics_ProjectedCorner *corner, int32_t x, int32_t y, int32_t z)
void Graphics_TransformViewCenter (const struct Math_Vec3I32 *world)
static bool build_billboard_corners (struct Graphics_ProjectedCorner *corners, const struct Math_Matrix3x3I16 *offset_rotation, struct Math_Vec3I16 offset, struct Math_Vec2I16 extents, bool yaw_aligned)
int Graphics_QuadDepthBucket (const struct Graphics_ProjectedCorner *corners)
uint32_t Graphics_FadeVertexColor (uint32_t color, uint32_t weight)
void Graphics_RenderBillboard (struct Scene_Node *node, const struct Graphics_Render_MeshBillboardRuntimeView *mesh, const struct Graphics_Render_SpriteNodeData *attachment, uint32_t xy0, uint32_t xy1, uint32_t xy2, uint32_t xy3)
void Graphics_RenderBillboardCorners (struct Scene_Node *node, struct Graphics_Render_MeshBillboardRuntimeView *mesh, uint32_t xy0, uint32_t xy1, uint32_t xy2, uint32_t xy3)

Function Documentation

◆ build_billboard_corners()

bool build_billboard_corners ( struct Graphics_ProjectedCorner * corners,
const struct Math_Matrix3x3I16 * offset_rotation,
struct Math_Vec3I16 offset,
struct Math_Vec2I16 extents,
bool yaw_aligned )
static

Definition at line 65 of file mesh_nodes.c.

◆ Graphics_FadeVertexColor()

uint32_t Graphics_FadeVertexColor ( uint32_t color,
uint32_t weight )

Definition at line 138 of file mesh_nodes.c.

◆ Graphics_ProjectCorner()

void Graphics_ProjectCorner ( struct Graphics_ProjectedCorner * corner,
int32_t x,
int32_t y,
int32_t z )

Definition at line 36 of file mesh_nodes.c.

◆ Graphics_QuadDepthBucket()

int Graphics_QuadDepthBucket ( const struct Graphics_ProjectedCorner * corners)

Definition at line 122 of file mesh_nodes.c.

◆ Graphics_RenderBillboard()

void Graphics_RenderBillboard ( struct Scene_Node * node,
const struct Graphics_Render_MeshBillboardRuntimeView * mesh,
const struct Graphics_Render_SpriteNodeData * attachment,
uint32_t xy0,
uint32_t xy1,
uint32_t xy2,
uint32_t xy3 )

Definition at line 146 of file mesh_nodes.c.

◆ Graphics_RenderBillboardCorners()

void Graphics_RenderBillboardCorners ( struct Scene_Node * node,
struct Graphics_Render_MeshBillboardRuntimeView * mesh,
uint32_t xy0,
uint32_t xy1,
uint32_t xy2,
uint32_t xy3 )

Definition at line 237 of file mesh_nodes.c.

◆ Graphics_TransformViewCenter()

void Graphics_TransformViewCenter ( const struct Math_Vec3I32 * world)

Definition at line 56 of file mesh_nodes.c.

◆ project_offset()

int32_t project_offset ( const int16_t * row,
struct Math_Vec3I16 offset )
static

Definition at line 30 of file mesh_nodes.c.

◆ transform_translation()

int32_t transform_translation ( const int16_t * row,
const struct Math_Vec3I32 * position )
static

Definition at line 24 of file mesh_nodes.c.