//********************************************************************************//
// //
// - "Talk to me like I'm a 3 year old!" Programming Lessons - //
// //
// $Author: DigiBen digiben@gametutorials.com //
// //
// $Program: GT Loader Part 3 //
// //
// $Description: Loads the GT Skeletal Animation format .GTF //
// //
//********************************************************************************//
#include "main.h"
#include "gtf.h"
//////////// *** NEW *** ////////// *** NEW *** ///////////// *** NEW *** ////////////////////
// Below we have a bunch of functions that we need for some basic
// calculations when dealing with 3D vectors and quaternions. Below
// those are some matrix-math functions, as well as the complicated
// SLERP (Spherical Linear Interpolation) function. The rest of the
// additions are for loading the animation data, rendering the animations,
// then handling the timing and updating of the animation frames.
////////////////////////////// OPERATOR * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\*
/////
///// This multiplies a scalar by a CVector3 and returns a CVector3
/////
////////////////////////////// OPERATOR * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\*
CVector3 operator*(float scalar, const CVector3& v)