102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1/* Recovered declarations; ABI and original layout preserved. */
2#ifndef PCDOGS_ANIMATION_FUNCTIONS_H
3#define PCDOGS_ANIMATION_FUNCTIONS_H
9#include "pcdogs/math/types.h"
10#include "pcdogs/scene/types.h"
11#include "pcdogs/types/common.h"
12
13void Animation_InterpolateKeyframeVec3Blend(uint32_t frame_time, int32_t blend_weight_q12, struct Animation_SplineChannelVec3 *vec3_track, struct Math_Vec3I32 *inout_vec3);
14
15void Animation_InterpolateVec3(uint32_t frame_time, struct Animation_SplineChannelVec3 *vec3_track, struct Math_Vec3I32 *out_vec3);
16
17int32_t Animation_CalculateSplineParameter(uint32_t sample_time, uint32_t next_key_time, uint32_t prev_key_packed, uint8_t next_ease_index, uint8_t *keyframe_data);
18
19void Animation_InterpolateKeyframeQuatBlend(uint32_t frame_time, int32_t blend_weight_q14, struct Animation_SplineChannelQuat *quat_track, struct Math_QuaternionI16 *inout_quat);
20
21void Animation_InterpolateQuat(uint32_t frame_time, struct Animation_SplineChannelQuat *quat_track, struct Math_QuaternionI16 *out_quat);
22
23void Animation_InterpolateQuaternionSlerp(struct Math_QuaternionI16 *out_quat, struct Math_QuaternionI16 *from_quat, struct Math_QuaternionI16 *to_quat, int32_t blend_weight_q14, int32_t angle_fp12, int32_t spin_phase);
24
25void Animation_ConvertQuatToRotMatrix(uint32_t frame_time, struct Animation_SplineChannelQuat *quat_track, struct Math_Matrix3x3I16 *out_matrix);
26
27uint8_t Animation_CheckKeyframeActive(uint32_t sample_time, struct Animation_SplineChannelVis *channel);
28
29void Animation_InterpolateSpline(uint32_t sample_time, struct Animation_SplineChannelScalar *channel, int16_t *out_value);
30
31void Bone_TransformVerticesMorphed(uint32_t sample_time, struct Animation_SplineChannelMorph *morph_channels, struct Actor_State *actor);
32
33void Bone_TransformVerticesWeighted(uint32_t sample_time, struct Animation_SplineChannelMorph *bone_channels, struct Bone_SkinningOwnerView *actor, struct Submesh_Entry *mesh_piece);
34
35void Bone_ComputeNormalsPostTransform(struct Bone_SkinningOwnerView *actor, struct Submesh_Entry *mesh_piece);
36
37void Bone_InitVertexBufferFromSkin(struct Bone_SkinningOwnerView *actor, struct Mesh_RuntimeVertex *dst_vertices, struct Animation_FrameVertex *skin_vertices, int32_t vertex_count);
38
39void Bone_BlendVerticesMultiWeight(struct Submesh_Entry *mesh_piece, struct Bone_SkinningOwnerView *actor, struct Animation_FrameVertex **skin_tables, int32_t *weights);
40
41void Animation_QueueStateChange(int32_t anim_state);
42
43void Model_AdvanceAnimation(struct Actor_State *actor);
44
45void Bone_UpdateJointTracking(struct Bone_JointTrackState *track, struct Actor_State *target_actor, int32_t explicit_reference_joint_index);
46
47bool Animation_ProcessController(struct Material_Node **material_nodes, Animation_PackedControllerState *packed_controller_state_in_out, int32_t frame_count_q12);
48
49void Animation_ProcessVertexColor(struct Animation_VertexColorController *color_controller, struct Mesh_NodeExtended *mesh_node);
50
52
53void Bone_TransformWeightedVerticesForRender(struct Scene_Node *node, struct Submesh_RenderSpan *weighted_span, struct Math_TransformQ12Q6 const *world_transform);
54
55void Mesh_CalculateVertexNormals(struct Graphics_Render_PolygonRenderRef *polygon_refs, int32_t polygon_count, struct Graphics_Render_SpriteVertexData *transformed_vertices, int32_t vertex_count);
56
57void Model_ResetState(struct Actor_State *actor);
58
59#endif /* PCDOGS_ANIMATION_FUNCTIONS_H */
uint32_t Animation_PackedControllerState
Definition enums.h:14
int32_t Animation_CalculateSplineParameter(uint32_t sample_time, uint32_t next_key_time, uint32_t prev_key_packed, uint8_t next_ease_index, uint8_t *keyframe_data)
bool Animation_ProcessController(struct Material_Node **material_nodes, Animation_PackedControllerState *packed_controller_state_in_out, int32_t frame_count_q12)
Definition controller.c:133
void Bone_TransformWeightedVerticesForRender(struct Scene_Node *node, struct Submesh_RenderSpan *weighted_span, struct Math_TransformQ12Q6 const *world_transform)
Definition skinning.c:308
void Bone_InitVertexBufferFromSkin(struct Bone_SkinningOwnerView *actor, struct Mesh_RuntimeVertex *dst_vertices, struct Animation_FrameVertex *skin_vertices, int32_t vertex_count)
Definition skinning.c:185
void Bone_ComputeNormalsPostTransform(struct Bone_SkinningOwnerView *actor, struct Submesh_Entry *mesh_piece)
Definition normals.c:125
void Bone_UpdateJointTracking(struct Bone_JointTrackState *track, struct Actor_State *target_actor, int32_t explicit_reference_joint_index)
void Bone_TransformVerticesMorphed(uint32_t sample_time, struct Animation_SplineChannelMorph *morph_channels, struct Actor_State *actor)
Definition skinning.c:84
void Animation_InterpolateQuat(uint32_t frame_time, struct Animation_SplineChannelQuat *quat_track, struct Math_QuaternionI16 *out_quat)
Definition quaternion.c:125
void Model_AdvanceAnimation(struct Actor_State *actor)
Definition model.c:21
void Animation_ProcessVertexColor(struct Animation_VertexColorController *color_controller, struct Mesh_NodeExtended *mesh_node)
Definition controller.c:231
void Bone_TransformVerticesWeighted(uint32_t sample_time, struct Animation_SplineChannelMorph *bone_channels, struct Bone_SkinningOwnerView *actor, struct Submesh_Entry *mesh_piece)
Definition skinning.c:132
void Animation_InterpolateVec3(uint32_t frame_time, struct Animation_SplineChannelVec3 *vec3_track, struct Math_Vec3I32 *out_vec3)
void Animation_InterpolateSpline(uint32_t sample_time, struct Animation_SplineChannelScalar *channel, int16_t *out_value)
void Animation_InterpolateKeyframeQuatBlend(uint32_t frame_time, int32_t blend_weight_q14, struct Animation_SplineChannelQuat *quat_track, struct Math_QuaternionI16 *inout_quat)
Definition quaternion.c:48
void Mesh_CalculateVertexNormals(struct Graphics_Render_PolygonRenderRef *polygon_refs, int32_t polygon_count, struct Graphics_Render_SpriteVertexData *transformed_vertices, int32_t vertex_count)
Definition normals.c:77
void Animation_ConvertQuatToRotMatrix(uint32_t frame_time, struct Animation_SplineChannelQuat *quat_track, struct Math_Matrix3x3I16 *out_matrix)
Definition quaternion.c:262
void Bone_BlendVerticesMultiWeight(struct Submesh_Entry *mesh_piece, struct Bone_SkinningOwnerView *actor, struct Animation_FrameVertex **skin_tables, int32_t *weights)
Definition skinning.c:201
void Model_ResetState(struct Actor_State *actor)
Definition model.c:92
void Bone_ProcessExternalRef(struct Scene_Node *node, struct Graphics_Render_SpriteNodeData *sprite_ctx)
void Animation_InterpolateQuaternionSlerp(struct Math_QuaternionI16 *out_quat, struct Math_QuaternionI16 *from_quat, struct Math_QuaternionI16 *to_quat, int32_t blend_weight_q14, int32_t angle_fp12, int32_t spin_phase)
Definition quaternion.c:203
void Animation_QueueStateChange(int32_t anim_state)
Definition controller.c:71
uint8_t Animation_CheckKeyframeActive(uint32_t sample_time, struct Animation_SplineChannelVis *channel)
Definition controller.c:17
void Animation_InterpolateKeyframeVec3Blend(uint32_t frame_time, int32_t blend_weight_q12, struct Animation_SplineChannelVec3 *vec3_track, struct Math_Vec3I32 *inout_vec3)
Definition types.h:322