ASEParser.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. /*
  2. Open Asset Import Library (assimp)
  3. ----------------------------------------------------------------------
  4. Copyright (c) 2006-2016, assimp team
  5. All rights reserved.
  6. Redistribution and use of this software in source and binary forms,
  7. with or without modification, are permitted provided that the
  8. following conditions are met:
  9. * Redistributions of source code must retain the above
  10. copyright notice, this list of conditions and the
  11. following disclaimer.
  12. * Redistributions in binary form must reproduce the above
  13. copyright notice, this list of conditions and the
  14. following disclaimer in the documentation and/or other
  15. materials provided with the distribution.
  16. * Neither the name of the assimp team, nor the names of its
  17. contributors may be used to endorse or promote products
  18. derived from this software without specific prior
  19. written permission of the assimp team.
  20. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. ----------------------------------------------------------------------
  32. */
  33. /** @file Defines the helper data structures for importing ASE files */
  34. #ifndef AI_ASEFILEHELPER_H_INC
  35. #define AI_ASEFILEHELPER_H_INC
  36. // public ASSIMP headers
  37. #include <assimp/types.h>
  38. #include <assimp/mesh.h>
  39. #include <assimp/anim.h>
  40. // for some helper routines like IsSpace()
  41. #include "ParsingUtils.h"
  42. #include "qnan.h"
  43. // ASE is quite similar to 3ds. We can reuse some structures
  44. #include "3DSLoader.h"
  45. namespace Assimp {
  46. namespace ASE {
  47. using namespace D3DS;
  48. // ---------------------------------------------------------------------------
  49. /** Helper structure representing an ASE material */
  50. struct Material : public D3DS::Material
  51. {
  52. //! Default constructor
  53. Material() : pcInstance(NULL), bNeed (false)
  54. {}
  55. //! Contains all sub materials of this material
  56. std::vector<Material> avSubMaterials;
  57. //! aiMaterial object
  58. aiMaterial* pcInstance;
  59. //! Can we remove this material?
  60. bool bNeed;
  61. };
  62. // ---------------------------------------------------------------------------
  63. /** Helper structure to represent an ASE file face */
  64. struct Face : public FaceWithSmoothingGroup
  65. {
  66. //! Default constructor. Initializes everything with 0
  67. Face()
  68. {
  69. mColorIndices[0] = mColorIndices[1] = mColorIndices[2] = 0;
  70. for (unsigned int i = 0; i < AI_MAX_NUMBER_OF_TEXTURECOORDS;++i)
  71. {
  72. amUVIndices[i][0] = amUVIndices[i][1] = amUVIndices[i][2] = 0;
  73. }
  74. iMaterial = DEFAULT_MATINDEX;
  75. iFace = 0;
  76. }
  77. //! special value to indicate that no material index has
  78. //! been assigned to a face. The default material index
  79. //! will replace this value later.
  80. static const unsigned int DEFAULT_MATINDEX = 0xFFFFFFFF;
  81. //! Indices into each list of texture coordinates
  82. unsigned int amUVIndices[AI_MAX_NUMBER_OF_TEXTURECOORDS][3];
  83. //! Index into the list of vertex colors
  84. unsigned int mColorIndices[3];
  85. //! (Sub)Material index to be assigned to this face
  86. unsigned int iMaterial;
  87. //! Index of the face. It is not specified whether it is
  88. //! a requirement of the file format that all faces are
  89. //! written in sequential order, so we have to expect this case
  90. unsigned int iFace;
  91. };
  92. // ---------------------------------------------------------------------------
  93. /** Helper structure to represent an ASE file bone */
  94. struct Bone
  95. {
  96. //! Constructor
  97. Bone()
  98. {
  99. static int iCnt = 0;
  100. // Generate a default name for the bone
  101. char szTemp[128];
  102. ::ai_snprintf(szTemp, 128, "UNNAMED_%i",iCnt++);
  103. mName = szTemp;
  104. }
  105. //! Construction from an existing name
  106. explicit Bone( const std::string& name)
  107. : mName (name)
  108. {}
  109. //! Name of the bone
  110. std::string mName;
  111. };
  112. // ---------------------------------------------------------------------------
  113. /** Helper structure to represent an ASE file bone vertex */
  114. struct BoneVertex
  115. {
  116. //! Bone and corresponding vertex weight.
  117. //! -1 for unrequired bones ....
  118. std::vector<std::pair<int,float> > mBoneWeights;
  119. //! Position of the bone vertex.
  120. //! MUST be identical to the vertex position
  121. //aiVector3D mPosition;
  122. };
  123. // ---------------------------------------------------------------------------
  124. /** Helper structure to represent an ASE file animation */
  125. struct Animation
  126. {
  127. enum Type
  128. {
  129. TRACK = 0x0,
  130. BEZIER = 0x1,
  131. TCB = 0x2
  132. } mRotationType, mScalingType, mPositionType;
  133. Animation()
  134. : mRotationType (TRACK)
  135. , mScalingType (TRACK)
  136. , mPositionType (TRACK)
  137. {}
  138. //! List of track rotation keyframes
  139. std::vector< aiQuatKey > akeyRotations;
  140. //! List of track position keyframes
  141. std::vector< aiVectorKey > akeyPositions;
  142. //! List of track scaling keyframes
  143. std::vector< aiVectorKey > akeyScaling;
  144. };
  145. // ---------------------------------------------------------------------------
  146. /** Helper structure to represent the inheritance information of an ASE node */
  147. struct InheritanceInfo
  148. {
  149. //! Default constructor
  150. InheritanceInfo()
  151. {
  152. // set the inheritance flag for all axes by default to true
  153. for (unsigned int i = 0; i < 3;++i)
  154. abInheritPosition[i] = abInheritRotation[i] = abInheritScaling[i] = true;
  155. }
  156. //! Inherit the parent's position?, axis order is x,y,z
  157. bool abInheritPosition[3];
  158. //! Inherit the parent's rotation?, axis order is x,y,z
  159. bool abInheritRotation[3];
  160. //! Inherit the parent's scaling?, axis order is x,y,z
  161. bool abInheritScaling[3];
  162. };
  163. // ---------------------------------------------------------------------------
  164. /** Represents an ASE file node. Base class for mesh, light and cameras */
  165. struct BaseNode
  166. {
  167. enum Type {Light, Camera, Mesh, Dummy} mType;
  168. //! Constructor. Creates a default name for the node
  169. explicit BaseNode(Type _mType)
  170. : mType (_mType)
  171. , mProcessed (false)
  172. {
  173. // generate a default name for the node
  174. static int iCnt = 0;
  175. char szTemp[128]; // should be sufficiently large
  176. ::ai_snprintf(szTemp, 128, "UNNAMED_%i",iCnt++);
  177. mName = szTemp;
  178. // Set mTargetPosition to qnan
  179. const ai_real qnan = get_qnan();
  180. mTargetPosition.x = qnan;
  181. }
  182. //! Name of the mesh
  183. std::string mName;
  184. //! Name of the parent of the node
  185. //! "" if there is no parent ...
  186. std::string mParent;
  187. //! Transformation matrix of the node
  188. aiMatrix4x4 mTransform;
  189. //! Target position (target lights and cameras)
  190. aiVector3D mTargetPosition;
  191. //! Specifies which axes transformations a node inherits
  192. //! from its parent ...
  193. InheritanceInfo inherit;
  194. //! Animation channels for the node
  195. Animation mAnim;
  196. //! Needed for lights and cameras: target animation channel
  197. //! Should contain position keys only.
  198. Animation mTargetAnim;
  199. bool mProcessed;
  200. };
  201. // ---------------------------------------------------------------------------
  202. /** Helper structure to represent an ASE file mesh */
  203. struct Mesh : public MeshWithSmoothingGroups<ASE::Face>, public BaseNode
  204. {
  205. //! Constructor.
  206. Mesh()
  207. : BaseNode (BaseNode::Mesh)
  208. , bSkip (false)
  209. {
  210. // use 2 texture vertex components by default
  211. for (unsigned int c = 0; c < AI_MAX_NUMBER_OF_TEXTURECOORDS;++c)
  212. this->mNumUVComponents[c] = 2;
  213. // setup the default material index by default
  214. iMaterialIndex = Face::DEFAULT_MATINDEX;
  215. }
  216. //! List of all texture coordinate sets
  217. std::vector<aiVector3D> amTexCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS];
  218. //! List of all vertex color sets.
  219. std::vector<aiColor4D> mVertexColors;
  220. //! List of all bone vertices
  221. std::vector<BoneVertex> mBoneVertices;
  222. //! List of all bones
  223. std::vector<Bone> mBones;
  224. //! Material index of the mesh
  225. unsigned int iMaterialIndex;
  226. //! Number of vertex components for each UVW set
  227. unsigned int mNumUVComponents[AI_MAX_NUMBER_OF_TEXTURECOORDS];
  228. //! used internally
  229. bool bSkip;
  230. };
  231. // ---------------------------------------------------------------------------
  232. /** Helper structure to represent an ASE light source */
  233. struct Light : public BaseNode
  234. {
  235. enum LightType
  236. {
  237. OMNI,
  238. TARGET,
  239. FREE,
  240. DIRECTIONAL
  241. };
  242. //! Constructor.
  243. Light()
  244. : BaseNode (BaseNode::Light)
  245. , mLightType (OMNI)
  246. , mColor (1.f,1.f,1.f)
  247. , mIntensity (1.f) // light is white by default
  248. , mAngle (45.f)
  249. , mFalloff (0.f)
  250. {
  251. }
  252. LightType mLightType;
  253. aiColor3D mColor;
  254. ai_real mIntensity;
  255. ai_real mAngle; // in degrees
  256. ai_real mFalloff;
  257. };
  258. // ---------------------------------------------------------------------------
  259. /** Helper structure to represent an ASE camera */
  260. struct Camera : public BaseNode
  261. {
  262. enum CameraType
  263. {
  264. FREE,
  265. TARGET
  266. };
  267. //! Constructor
  268. Camera()
  269. : BaseNode (BaseNode::Camera)
  270. , mFOV (0.75f) // in radians
  271. , mNear (0.1f)
  272. , mFar (1000.f) // could be zero
  273. , mCameraType (FREE)
  274. {
  275. }
  276. ai_real mFOV, mNear, mFar;
  277. CameraType mCameraType;
  278. };
  279. // ---------------------------------------------------------------------------
  280. /** Helper structure to represent an ASE helper object (dummy) */
  281. struct Dummy : public BaseNode
  282. {
  283. //! Constructor
  284. Dummy()
  285. : BaseNode (BaseNode::Dummy)
  286. {
  287. }
  288. };
  289. // Parameters to Parser::Parse()
  290. #define AI_ASE_NEW_FILE_FORMAT 200
  291. #define AI_ASE_OLD_FILE_FORMAT 110
  292. // Internally we're a little bit more tolerant
  293. #define AI_ASE_IS_NEW_FILE_FORMAT() (iFileFormat >= 200)
  294. #define AI_ASE_IS_OLD_FILE_FORMAT() (iFileFormat < 200)
  295. // -------------------------------------------------------------------------------
  296. /** \brief Class to parse ASE files
  297. */
  298. class Parser
  299. {
  300. private:
  301. Parser() {}
  302. public:
  303. // -------------------------------------------------------------------
  304. //! Construct a parser from a given input file which is
  305. //! guaranted to be terminated with zero.
  306. //! @param szFile Input file
  307. //! @param fileFormatDefault Assumed file format version. If the
  308. //! file format is specified in the file the new value replaces
  309. //! the default value.
  310. Parser (const char* szFile, unsigned int fileFormatDefault);
  311. // -------------------------------------------------------------------
  312. //! Parses the file into the parsers internal representation
  313. void Parse();
  314. private:
  315. // -------------------------------------------------------------------
  316. //! Parse the *SCENE block in a file
  317. void ParseLV1SceneBlock();
  318. // -------------------------------------------------------------------
  319. //! Parse the *MESH_SOFTSKINVERTS block in a file
  320. void ParseLV1SoftSkinBlock();
  321. // -------------------------------------------------------------------
  322. //! Parse the *MATERIAL_LIST block in a file
  323. void ParseLV1MaterialListBlock();
  324. // -------------------------------------------------------------------
  325. //! Parse a *<xxx>OBJECT block in a file
  326. //! \param mesh Node to be filled
  327. void ParseLV1ObjectBlock(BaseNode& mesh);
  328. // -------------------------------------------------------------------
  329. //! Parse a *MATERIAL blocks in a material list
  330. //! \param mat Material structure to be filled
  331. void ParseLV2MaterialBlock(Material& mat);
  332. // -------------------------------------------------------------------
  333. //! Parse a *NODE_TM block in a file
  334. //! \param mesh Node (!) object to be filled
  335. void ParseLV2NodeTransformBlock(BaseNode& mesh);
  336. // -------------------------------------------------------------------
  337. //! Parse a *TM_ANIMATION block in a file
  338. //! \param mesh Mesh object to be filled
  339. void ParseLV2AnimationBlock(BaseNode& mesh);
  340. void ParseLV3PosAnimationBlock(ASE::Animation& anim);
  341. void ParseLV3ScaleAnimationBlock(ASE::Animation& anim);
  342. void ParseLV3RotAnimationBlock(ASE::Animation& anim);
  343. // -------------------------------------------------------------------
  344. //! Parse a *MESH block in a file
  345. //! \param mesh Mesh object to be filled
  346. void ParseLV2MeshBlock(Mesh& mesh);
  347. // -------------------------------------------------------------------
  348. //! Parse a *LIGHT_SETTINGS block in a file
  349. //! \param light Light object to be filled
  350. void ParseLV2LightSettingsBlock(Light& light);
  351. // -------------------------------------------------------------------
  352. //! Parse a *CAMERA_SETTINGS block in a file
  353. //! \param cam Camera object to be filled
  354. void ParseLV2CameraSettingsBlock(Camera& cam);
  355. // -------------------------------------------------------------------
  356. //! Parse the *MAP_XXXXXX blocks in a material
  357. //! \param map Texture structure to be filled
  358. void ParseLV3MapBlock(Texture& map);
  359. // -------------------------------------------------------------------
  360. //! Parse a *MESH_VERTEX_LIST block in a file
  361. //! \param iNumVertices Value of *MESH_NUMVERTEX, if present.
  362. //! Otherwise zero. This is used to check the consistency of the file.
  363. //! A warning is sent to the logger if the validations fails.
  364. //! \param mesh Mesh object to be filled
  365. void ParseLV3MeshVertexListBlock(
  366. unsigned int iNumVertices,Mesh& mesh);
  367. // -------------------------------------------------------------------
  368. //! Parse a *MESH_FACE_LIST block in a file
  369. //! \param iNumFaces Value of *MESH_NUMFACES, if present.
  370. //! Otherwise zero. This is used to check the consistency of the file.
  371. //! A warning is sent to the logger if the validations fails.
  372. //! \param mesh Mesh object to be filled
  373. void ParseLV3MeshFaceListBlock(
  374. unsigned int iNumFaces,Mesh& mesh);
  375. // -------------------------------------------------------------------
  376. //! Parse a *MESH_TVERT_LIST block in a file
  377. //! \param iNumVertices Value of *MESH_NUMTVERTEX, if present.
  378. //! Otherwise zero. This is used to check the consistency of the file.
  379. //! A warning is sent to the logger if the validations fails.
  380. //! \param mesh Mesh object to be filled
  381. //! \param iChannel Output UVW channel
  382. void ParseLV3MeshTListBlock(
  383. unsigned int iNumVertices,Mesh& mesh, unsigned int iChannel = 0);
  384. // -------------------------------------------------------------------
  385. //! Parse a *MESH_TFACELIST block in a file
  386. //! \param iNumFaces Value of *MESH_NUMTVFACES, if present.
  387. //! Otherwise zero. This is used to check the consistency of the file.
  388. //! A warning is sent to the logger if the validations fails.
  389. //! \param mesh Mesh object to be filled
  390. //! \param iChannel Output UVW channel
  391. void ParseLV3MeshTFaceListBlock(
  392. unsigned int iNumFaces,Mesh& mesh, unsigned int iChannel = 0);
  393. // -------------------------------------------------------------------
  394. //! Parse an additional mapping channel
  395. //! (specified via *MESH_MAPPINGCHANNEL)
  396. //! \param iChannel Channel index to be filled
  397. //! \param mesh Mesh object to be filled
  398. void ParseLV3MappingChannel(
  399. unsigned int iChannel, Mesh& mesh);
  400. // -------------------------------------------------------------------
  401. //! Parse a *MESH_CVERTLIST block in a file
  402. //! \param iNumVertices Value of *MESH_NUMCVERTEX, if present.
  403. //! Otherwise zero. This is used to check the consistency of the file.
  404. //! A warning is sent to the logger if the validations fails.
  405. //! \param mesh Mesh object to be filled
  406. void ParseLV3MeshCListBlock(
  407. unsigned int iNumVertices, Mesh& mesh);
  408. // -------------------------------------------------------------------
  409. //! Parse a *MESH_CFACELIST block in a file
  410. //! \param iNumFaces Value of *MESH_NUMCVFACES, if present.
  411. //! Otherwise zero. This is used to check the consistency of the file.
  412. //! A warning is sent to the logger if the validations fails.
  413. //! \param mesh Mesh object to be filled
  414. void ParseLV3MeshCFaceListBlock(
  415. unsigned int iNumFaces, Mesh& mesh);
  416. // -------------------------------------------------------------------
  417. //! Parse a *MESH_NORMALS block in a file
  418. //! \param mesh Mesh object to be filled
  419. void ParseLV3MeshNormalListBlock(Mesh& mesh);
  420. // -------------------------------------------------------------------
  421. //! Parse a *MESH_WEIGHTSblock in a file
  422. //! \param mesh Mesh object to be filled
  423. void ParseLV3MeshWeightsBlock(Mesh& mesh);
  424. // -------------------------------------------------------------------
  425. //! Parse the bone list of a file
  426. //! \param mesh Mesh object to be filled
  427. //! \param iNumBones Number of bones in the mesh
  428. void ParseLV4MeshBones(unsigned int iNumBones,Mesh& mesh);
  429. // -------------------------------------------------------------------
  430. //! Parse the bone vertices list of a file
  431. //! \param mesh Mesh object to be filled
  432. //! \param iNumVertices Number of vertices to be parsed
  433. void ParseLV4MeshBonesVertices(unsigned int iNumVertices,Mesh& mesh);
  434. // -------------------------------------------------------------------
  435. //! Parse a *MESH_FACE block in a file
  436. //! \param out receive the face data
  437. void ParseLV4MeshFace(ASE::Face& out);
  438. // -------------------------------------------------------------------
  439. //! Parse a *MESH_VERT block in a file
  440. //! (also works for MESH_TVERT, MESH_CFACE, MESH_VERTCOL ...)
  441. //! \param apOut Output buffer (3 floats)
  442. //! \param rIndexOut Output index
  443. void ParseLV4MeshFloatTriple(ai_real* apOut, unsigned int& rIndexOut);
  444. // -------------------------------------------------------------------
  445. //! Parse a *MESH_VERT block in a file
  446. //! (also works for MESH_TVERT, MESH_CFACE, MESH_VERTCOL ...)
  447. //! \param apOut Output buffer (3 floats)
  448. void ParseLV4MeshFloatTriple(ai_real* apOut);
  449. // -------------------------------------------------------------------
  450. //! Parse a *MESH_TFACE block in a file
  451. //! (also works for MESH_CFACE)
  452. //! \param apOut Output buffer (3 ints)
  453. //! \param rIndexOut Output index
  454. void ParseLV4MeshLongTriple(unsigned int* apOut, unsigned int& rIndexOut);
  455. // -------------------------------------------------------------------
  456. //! Parse a *MESH_TFACE block in a file
  457. //! (also works for MESH_CFACE)
  458. //! \param apOut Output buffer (3 ints)
  459. void ParseLV4MeshLongTriple(unsigned int* apOut);
  460. // -------------------------------------------------------------------
  461. //! Parse a single float element
  462. //! \param fOut Output float
  463. void ParseLV4MeshFloat(ai_real& fOut);
  464. // -------------------------------------------------------------------
  465. //! Parse a single int element
  466. //! \param iOut Output integer
  467. void ParseLV4MeshLong(unsigned int& iOut);
  468. // -------------------------------------------------------------------
  469. //! Skip everything to the next: '*' or '\0'
  470. bool SkipToNextToken();
  471. // -------------------------------------------------------------------
  472. //! Skip the current section until the token after the closing }.
  473. //! This function handles embedded subsections correctly
  474. bool SkipSection();
  475. // -------------------------------------------------------------------
  476. //! Output a warning to the logger
  477. //! \param szWarn Warn message
  478. void LogWarning(const char* szWarn);
  479. // -------------------------------------------------------------------
  480. //! Output a message to the logger
  481. //! \param szWarn Message
  482. void LogInfo(const char* szWarn);
  483. // -------------------------------------------------------------------
  484. //! Output an error to the logger
  485. //! \param szWarn Error message
  486. AI_WONT_RETURN void LogError(const char* szWarn) AI_WONT_RETURN_SUFFIX;
  487. // -------------------------------------------------------------------
  488. //! Parse a string, enclosed in double quotation marks
  489. //! \param out Output string
  490. //! \param szName Name of the enclosing element -> used in error
  491. //! messages.
  492. //! \return false if an error occurred
  493. bool ParseString(std::string& out,const char* szName);
  494. public:
  495. //! Pointer to current data
  496. const char* filePtr;
  497. //! background color to be passed to the viewer
  498. //! QNAN if none was found
  499. aiColor3D m_clrBackground;
  500. //! Base ambient color to be passed to all materials
  501. //! QNAN if none was found
  502. aiColor3D m_clrAmbient;
  503. //! List of all materials found in the file
  504. std::vector<Material> m_vMaterials;
  505. //! List of all meshes found in the file
  506. std::vector<Mesh> m_vMeshes;
  507. //! List of all dummies found in the file
  508. std::vector<Dummy> m_vDummies;
  509. //! List of all lights found in the file
  510. std::vector<Light> m_vLights;
  511. //! List of all cameras found in the file
  512. std::vector<Camera> m_vCameras;
  513. //! Current line in the file
  514. unsigned int iLineNumber;
  515. //! First frame
  516. unsigned int iFirstFrame;
  517. //! Last frame
  518. unsigned int iLastFrame;
  519. //! Frame speed - frames per second
  520. unsigned int iFrameSpeed;
  521. //! Ticks per frame
  522. unsigned int iTicksPerFrame;
  523. //! true if the last character read was an end-line character
  524. bool bLastWasEndLine;
  525. //! File format version
  526. unsigned int iFileFormat;
  527. };
  528. } // Namespace ASE
  529. } // Namespace ASSIMP
  530. #endif // !! include guard