Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
PSAConvert Class Reference

Static Public Member Functions

static void ColladaToPSA (const char *input, OutputCB &output, std::string &xmlErrors)
 Converts a COLLADA XML document into the PSA animation format. More...
 
static void WritePSA (OutputCB &output, size_t frameCount, size_t boneCount, const std::vector< BoneTransform > &boneTransforms)
 Writes the animation data in the PSA format. More...
 
static void TransformVertices (std::vector< BoneTransform > &bones, const FMMatrix44 &transform, bool yUp, bool isXSI)
 
static void GetAnimationRange (const FColladaDocument &doc, const Skeleton &skeleton, const FCDControllerInstance &controllerInstance, float &timeStart, float &timeEnd)
 
static bool GetAnimationRange_XSI (const FColladaDocument &doc, float &timeStart, float &timeEnd)
 
static void EvaluateAnimations (FCDSceneNode &node, float time)
 

Member Function Documentation

◆ ColladaToPSA()

static void PSAConvert::ColladaToPSA ( const char *  input,
OutputCB output,
std::string &  xmlErrors 
)
inlinestatic

Converts a COLLADA XML document into the PSA animation format.

Parameters
inputXML document to parse
outputcallback for writing the PSA data; called lots of times with small strings
xmlErrorsoutput - errors reported by the XML parser
Exceptions
ColladaExceptionon failure

◆ EvaluateAnimations()

static void PSAConvert::EvaluateAnimations ( FCDSceneNode &  node,
float  time 
)
inlinestatic

◆ GetAnimationRange()

static void PSAConvert::GetAnimationRange ( const FColladaDocument doc,
const Skeleton skeleton,
const FCDControllerInstance &  controllerInstance,
float &  timeStart,
float &  timeEnd 
)
inlinestatic

◆ GetAnimationRange_XSI()

static bool PSAConvert::GetAnimationRange_XSI ( const FColladaDocument doc,
float &  timeStart,
float &  timeEnd 
)
inlinestatic

◆ TransformVertices()

static void PSAConvert::TransformVertices ( std::vector< BoneTransform > &  bones,
const FMMatrix44 &  transform,
bool  yUp,
bool  isXSI 
)
inlinestatic

◆ WritePSA()

static void PSAConvert::WritePSA ( OutputCB output,
size_t  frameCount,
size_t  boneCount,
const std::vector< BoneTransform > &  boneTransforms 
)
inlinestatic

Writes the animation data in the PSA format.


The documentation for this class was generated from the following file: