2 #include "modelheaders.h" 3 #include "ParaXRefObject.h" 5 #define PARAX_MAX_NUMBER_OF_TEXTURECOORDS 0x2 8 #define PARAX_MAX_NUMBER_OF_COLOR_SETS 0x2 17 :
public runtime_error
22 : runtime_error(pErrorText)
44 TexEntry(
const std::string& pName,
bool pIsNormalMap =
false)
45 : mName(pName), mIsNormalMap(pIsNormalMap)
56 float mSpecularExponent;
59 std::vector<TexEntry> mTextures;
63 Material() { mIsReference =
false; sceneIndex = -1; }
77 std::vector<BoneWeight> mWeights;
84 std::vector<Vector3> mPositions;
85 std::vector<Face> mPosFaces;
86 std::vector<Vector3> mNormals;
87 std::vector<Face> mNormFaces;
88 unsigned int mNumTextures;
89 std::vector<Vector2> mTexCoords[PARAX_MAX_NUMBER_OF_TEXTURECOORDS];
90 unsigned int mNumColorSets;
91 std::vector<LinearColor> mColors[PARAX_MAX_NUMBER_OF_COLOR_SETS];
93 std::vector<unsigned int> mFaceMaterials;
94 std::vector<Material> mMaterials;
96 std::vector<Bone> mBones;
98 Mesh() { mNumTextures = 0; mNumColorSets = 0; }
107 std::vector<Node*> mChildren;
108 std::vector<Mesh*> mMeshes;
110 Node() { mParent = NULL; }
111 Node(
Node* pParent) { mParent = pParent; }
114 for (
unsigned int a = 0; a < mChildren.size(); a++)
116 for (
unsigned int a = 0; a < mMeshes.size(); a++)
129 std::vector<Mesh*> mGlobalMeshes;
130 std::vector<Material> mGlobalMaterials;
131 std::vector<ParaXRefObject> m_XRefObjects;
132 Scene() { mRootNode = NULL; }
136 for (
unsigned int a = 0; a < mGlobalMeshes.size(); a++)
137 delete mGlobalMeshes[a];
Helper structure analogue to aiScene.
Definition: XFileHelper.h:123
different physics engine has different winding order.
Definition: EventBinding.h:32
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
Helper structure to represent a bone weight.
Definition: XFileHelper.h:67
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: ParaMatrix4.h:23
Helper structure to represent an XFile mesh.
Definition: XFileHelper.h:82
Helper structure to represent a bone in a mesh.
Definition: XFileHelper.h:74
Helper structure to represent a XFile frame.
Definition: XFileHelper.h:102
Helper structure representing a texture filename inside a material and its potential source...
Definition: XFileHelper.h:38
FOR IMPORTER PLUGINS ONLY: Simple exception class to be thrown if an unrecoverable error occurs while...
Definition: XFileHelper.h:16
Helper structure representing a XFile mesh face.
Definition: XFileHelper.h:32
A linear, 32-bit/component floating point RGBA color.
Definition: ParaColor.h:12
DeadlyImportError(const std::string &pErrorText)
Constructor with arguments.
Definition: XFileHelper.h:21
int32 sceneIndex
the index under which it was stored in the scene's material list
Definition: XFileHelper.h:61
Helper structure representing a XFile material.
Definition: XFileHelper.h:51