Program that converts geometric and animation 3D scene data, from a COLLADA "*.dae" file to a binary file, with a custom format.
#include "./funcs.hpp"
#include "./structs.hpp"
joint::joint()
{
num_child_joints= 0;
num_keyframes= 0;
joint_arr_index= -1;
parent_joint= NULL;
child_joints= NULL;
init_mat4(inv_bind_transform);
init_mat4(transform);
//animation data
keyframe_transforms= NULL;
keyframe_timestamps= NULL;
};
joint::~joint()
{
if(keyframe_transforms!= NULL) delete keyframe_transforms;
if(keyframe_timestamps!= NULL) delete keyframe_timestamps;
};