Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cModel.h
Go to the documentation of this file.
1 //
5 //
6 
7 #ifndef _INC_cModel_H
8 #define _INC_cModel_H
9 #ifndef NO_PRAGMA_ONCE
10 #pragma once
11 #endif
12 #include "cMesh.h"
13 #include "../Resource/cXResourceFile.h"
20 
21 namespace Gray3D
22 {
24  {
31  };
32 
33  class cModelMeshCont : public cRefBase
34  {
40 
41  // Mesh
42 
43  cString m_sName;
44  cBounds3f m_BBoxMesh;
45  cSpheref m_BSphereMesh;
46 
47  cArrayStruct<cModelMaterial> m_aMaterials;
48  };
49 
51 
52  class cModelFrame : public cRefBase
53  {
58  public:
59  cString m_sName; // Frame Name. (if any)
60 
62  cBounds3f m_BBoxFrame;
64 
67  };
68 
69  class cModel
70  : public cXResourceFile
71  {
79 
80  private:
81  cArrayRef<cModelFrame> m_aFrames;
82 
83  public:
84  cModel(const FILECHAR_t* pszFileName)
85  : cXResourceFile(pszFileName)
86  {
87  }
88 
90  };
91 
93 };
94 
95 #endif
Definition: cModel.h:53
cArrayRef< cModelFrame > m_aFrames
array of child frames
Definition: cModel.h:66
cSpheref m_BSphereFrame
combined model space bsphere. NOT valid once animated.
Definition: cModel.h:63
cMatrix4x4f m_mCombinedTransformation
multiply up all my parent chains matrices. how to transform into full model coords....
Definition: cModel.h:61
cBounds3f m_BBoxFrame
combined model space bbox. NOT valid once animated.
Definition: cModel.h:62
cString m_sName
Definition: cModel.h:59
cArrayRef< cModelMeshCont > m_aMeshCont
array of child meshes.
Definition: cModel.h:65
Definition: cModel.h:24
Definition: cModel.h:34
Definition: cModel.h:71
UNITTEST_FRIEND(cModel)
cModel(const FILECHAR_t *pszFileName)
Definition: cModel.h:84
Definition: cXResourceFile.h:20
Definition: cMatrix.h:194
Definition: cSphere.h:20
Definition: cArrayRef.h:21
Definition: cArray.h:932
Definition: cRefPtr.h:22
Definition: cRefPtr.h:225
Definition: Gray3D.cpp:12
cRefPtr< cModelMeshCont > cModelMeshContPtr
Definition: cModel.h:50
cRefPtr< cModel > cModelPtr
Definition: cModel.h:92
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22