7 #ifndef CAFU_ASE_MODEL_LOADER_HPP_INCLUDED
8 #define CAFU_ASE_MODEL_LOADER_HPP_INCLUDED
24 LoaderAseT(
const std::string& FileName,
int Flags=NONE);
30 bool Load(
unsigned int Level,
CafuModelT*& DlodModel,
float& DlodDist) {
return false; }
45 for (
unsigned long i=0; i<3; i++)
75 unsigned long IndexMaterial;
unsigned long IndVertices[3]
Indices into the Vertices array.
Definition: Loader_ase.hpp:53
This class represents a native Cafu model.
Definition: Model_cmdl.hpp:45
VectorT Tangents[3]
The smoothgroup tangents for the three vertices.
Definition: Loader_ase.hpp:61
void Load(ArrayT< CafuModelT::ChannelT > &Channels)
Loads the animation channels (groups of joints) of the Cafu model.
Definition: Loader_ase.hpp:29
uint32_t SmoothGrps
The smoothing groups that this triangle is in: If bit i is set, the triangle is in smoothing group i...
Definition: Loader_ase.hpp:56
A single triangle.
Definition: Loader_ase.hpp:39
LoaderAseT(const std::string &FileName, int Flags=NONE)
The constructor for importing an ASE (ASCII Scene Exporter, 3dsmax) model file into a new Cafu model...
Definition: Loader_ase.cpp:292
bool Load(unsigned int Level, CafuModelT *&DlodModel, float &DlodDist)
Loads the dlod-model and dlod-distance at the given level.
Definition: Loader_ase.hpp:30
VectorT Normals[3]
The smoothgroup normals for the three vertices.
Definition: Loader_ase.hpp:60
The base class for importing arbitrary model files into Cafu models.
Definition: Loader.hpp:15
VectorT BiNormals[3]
The smoothgroup binormals for the three vertices.
Definition: Loader_ase.hpp:62
void Load(ArrayT< CafuModelT::JointT > &Joints, ArrayT< CafuModelT::MeshT > &Meshes, ArrayT< CafuModelT::AnimT > &Anims, MaterialManagerImplT &MaterialMan)
Actually loads the file data into the appropriate parts of the Cafu model.
Definition: Loader_ase.cpp:486
This class implements the MaterialManagerI interface.
Definition: MaterialManagerImpl.hpp:23
ArrayT< unsigned long > SmoothGroups
The SmoothGroups this triangle is in.
Definition: Loader_ase.hpp:55
void Load(ArrayT< CafuModelT::SkinT > &Skins, const MaterialManagerImplT &MaterialMan)
Loads the skins of the Cafu model.
Definition: Loader_ase.hpp:27
unsigned long IndTexCoords[3]
Indices into the TexCoords array.
Definition: Loader_ase.hpp:54
VectorT Normal
The geometric per-triangle normal.
Definition: Loader_ase.hpp:59
This class imports an ASE (ASCII Scene Exporter, 3dsmax) model file into a new Cafu model...
Definition: Loader_ase.hpp:17
TriangleT()
Constructor.
Definition: Loader_ase.hpp:42
This is a class for parsing text.
Definition: TextParser.hpp:21