#include "transformanimation.h" #include using namespace std; TransformAnimation::TransformAnimation(void) { } TransformAnimation::~TransformAnimation(void) { } void TransformAnimation::Load(char *filename) { fprintf(stderr, "Loading scene:"); fprintf(stderr, filename); ifstream file(filename); char* tempchar=new char[1000]; file.getline(tempchar,500,'\n'); sscanf(tempchar,"framecount %ui",&framecount); translations=new Vector[framecount]; rotations=new Vector[framecount]; matrixes=new float[framecount*16]; quaternions=new float[framecount*4]; for(int i=0;i