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

Go to the source code of this file.

Functions

uint8_t Animation_CheckKeyframeActive (uint32_t sample_time, struct Animation_SplineChannelVis *channel)
void Animation_QueueStateChange (int32_t anim_state)
static void scroll_texture_axis (struct Material_Node *node, int32_t frame, bool vertical)
static uint8_t blend_color_byte (uint8_t start, uint8_t end, int32_t weight)
static void update_material_color (struct Material_Node *node, uint32_t frame)
bool Animation_ProcessController (struct Material_Node **material_nodes, Animation_PackedControllerState *state, int32_t frame_count_q12)
static int16_t blend_color_delta (int16_t previous, int16_t next, int32_t weight)
static struct Math_ColorRGBI16 sample_vertex_color (const struct Animation_VertexColorKeyframe *keys, int32_t frame, bool per_vertex)
static uint8_t clamp_color (int channel)
void Animation_ProcessVertexColor (struct Animation_VertexColorController *controller, struct Mesh_NodeExtended *mesh)

Function Documentation

◆ Animation_CheckKeyframeActive()

uint8_t Animation_CheckKeyframeActive ( uint32_t sample_time,
struct Animation_SplineChannelVis * channel )

Definition at line 17 of file controller.c.

◆ Animation_ProcessController()

bool Animation_ProcessController ( struct Material_Node ** material_nodes,
Animation_PackedControllerState * state,
int32_t frame_count_q12 )

Definition at line 133 of file controller.c.

◆ Animation_ProcessVertexColor()

void Animation_ProcessVertexColor ( struct Animation_VertexColorController * controller,
struct Mesh_NodeExtended * mesh )

Definition at line 231 of file controller.c.

◆ Animation_QueueStateChange()

void Animation_QueueStateChange ( int32_t anim_state)

Definition at line 71 of file controller.c.

◆ blend_color_byte()

uint8_t blend_color_byte ( uint8_t start,
uint8_t end,
int32_t weight )
static

Definition at line 97 of file controller.c.

◆ blend_color_delta()

int16_t blend_color_delta ( int16_t previous,
int16_t next,
int32_t weight )
static

Definition at line 189 of file controller.c.

◆ clamp_color()

uint8_t clamp_color ( int channel)
static

Definition at line 223 of file controller.c.

◆ sample_vertex_color()

struct Math_ColorRGBI16 sample_vertex_color ( const struct Animation_VertexColorKeyframe * keys,
int32_t frame,
bool per_vertex )
static

Definition at line 196 of file controller.c.

◆ scroll_texture_axis()

void scroll_texture_axis ( struct Material_Node * node,
int32_t frame,
bool vertical )
static

Definition at line 78 of file controller.c.

◆ update_material_color()

void update_material_color ( struct Material_Node * node,
uint32_t frame )
static

Definition at line 102 of file controller.c.