Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

collada
Class PMDConvert

   in PMDConvert.cpp

class PMDConvert


Method Summary
 static void ColladaToPMD( const char* input, OutputCB& output, std::string& xmlErrors )
          Converts a COLLADA XML document into the PMD mesh format.
 static FCDGeometryPolygons* GetPolysFromGeometry( FCDGeometry* geom )
          
 static void TransformVertices( FloatList& position, FloatList& normal, const FMMatrix44& transform, bool yUp )
          Applies world-space transform to vertex data, and flips into other-handed coordinate space.
 static void TransformVertices( FloatList& position, FloatList& normal, std::vector< BoneTransform >& bones, std::vector< PropPoint >& propPoints, const FMMatrix44& transform, const FMMatrix44& bindTransform, bool yUp, bool isXSI )
          
 static void WritePMD( OutputCB& output, const UInt32List& indices, const FloatList& position, const FloatList& normal, const FloatList& texcoord, const std::vector< VertexBlend >& boneWeights, const std::vector< BoneTransform >& boneTransforms, const std::vector< PropPoint >& propPoints )
          Writes the model data in the PMD format.
 

Method Detail

ColladaToPMD

public static void ColladaToPMD( const char* input, OutputCB& output, std::string& xmlErrors );
Converts a COLLADA XML document into the PMD mesh format.
Parameters:
input - XML document to parse
output - callback for writing the PMD data; called lots of times with small strings
xmlErrors - output - errors reported by the XML parser
Throws:
ColladaException - on failure

GetPolysFromGeometry

public static FCDGeometryPolygons* GetPolysFromGeometry( FCDGeometry* geom );

TransformVertices

public static void TransformVertices( FloatList& position, FloatList& normal, const FMMatrix44& transform, bool yUp );
Applies world-space transform to vertex data, and flips into other-handed coordinate space.

TransformVertices

public static void TransformVertices( FloatList& position, FloatList& normal, std::vector< BoneTransform >& bones, std::vector< PropPoint >& propPoints, const FMMatrix44& transform, const FMMatrix44& bindTransform, bool yUp, bool isXSI );

WritePMD

public static void WritePMD( OutputCB& output, const UInt32List& indices, const FloatList& position, const FloatList& normal, const FloatList& texcoord, const std::vector< VertexBlend >& boneWeights, const std::vector< BoneTransform >& boneTransforms, const std::vector< PropPoint >& propPoints );
Writes the model data in the PMD format.

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD