My Project
Geoset.h
1 
2 #ifndef __GEOSET_H__
3 #define __GEOSET_H__
4 
5 #include "utils.h"
6 #include "GeoChunk.h"
7 #include "ModelUtils.h"
8 
9 #include <list>
10 using namespace std;
11 
12 namespace ParaEngine
13 {
14 class CMDXModel;
15 class ShadowVolume;
16 struct LightParams;
17 
18 #define MAX_CHUNK_NUM 10
19 
25 class CGeoset
26 {
27 public:
28  CGeoset(void);
29  ~CGeoset(void);
30  void Cleanup();
31 
32  void Read(TypePointer inP,int inSize);
33  void Render(CMDXModel *model,const AnimInfo& animInfo);
34 
35  int GetNumChunks(){return (int)chunks.size();};
36  CGeoChunk* AddNewChunk();
37 
38  void BuildShadowVolume(CMDXModel *model,const AnimInfo& animInfo,ShadowVolume * pShadowVolume, LightParams* pLight, D3DXMATRIX* mxWorld);
39 private:
40  list <CGeoChunk*> chunks;
41 };
42 }
43 #endif //__GEOSET_H__
44 
45 
An X file model must contain only one geoset which is a collection of geochunks.
Definition: Geoset.h:25
ShadowVolume is a structure for storing shadow volume geometries.
Definition: ShadowVolume.h:39
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: utils.h:13
LightParams is a structure for which a shadow volume is built.
Definition: ShadowVolume.h:8
This is a mesh object.
Definition: GeoChunk.h:26
Definition: ModelUtils.h:7
This is the ParaX mesh and animation file format model.
Definition: MDXModel.h:61