8 #include "ModelUtils.h" 9 #include "GeosetAnim.h" 14 extern void *malloc_func(
const size_t size);
15 extern void free_func(
void* ptr);
16 extern DWORD FromMPQ1(
char*szFichier,
char*& buffer);
17 extern DWORD FromMPQ(
char*szFichier,
char*& buffer);
36 #define MAX_CAMERAS 32 42 CCameras() : mNumCameras(NULL),mLoaded(
false), mCameras(NULL) { }
67 bool Load(
const char* inName);
69 bool LoadFromX(
const char* inName);
70 bool SaveToX(
const char* inName,
bool bText);
72 void InitDeviceObjects();
73 void DeleteDeviceObjects();
75 void AdvanceTime(
double dTimeDelta );
78 void UpdateAnim(
int animNum);
79 int GetAnimNum(
const char* animName);
82 void SetModelColor(
float r,
float g,
float b);
83 void SetModelColor(D3DXCOLOR modelcolor);
84 D3DXCOLOR* GetModelColor(){
return &modelColor;};
85 void SetBlendingTime(
float fTime);
95 float ComputeBoundingBox(D3DXVECTOR3 *pMin, D3DXVECTOR3 *pMax );
112 int nDefaultStandIndex;
113 int nDefaultWalkIndex;
117 static char* mdxData;
119 D3DXCOLOR modelColor;
121 void ParseXFileData(ID3DXFileData *pData);
126 void SetCurrentAnimInfo(
AnimInfo* ai){currentAnimInfo = *ai;};
127 void GetCurrentAnimInfo(
AnimInfo* ai){*ai = currentAnimInfo;};
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
It's used as parameter to Draw method of each scene object.
Definition: SceneState.h:284
Each x file model must has a skeleton(including static object) A skeleton contains a collection of bo...
Definition: Bone.h:317
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: MDXModel.h:20
LightParams is a structure for which a shadow volume is built.
Definition: ShadowVolume.h:8
Definition: Material.h:75
Model textures are managed separately with the paraengine asset manager's texture pool...
Definition: Texture.h:32
this is intermediary structure for parsing Para X file.
Definition: ParaEngineXFileDef.h:287
Definition: MDXModel.h:34
Definition: ModelUtils.h:7
This is the ParaX mesh and animation file format model.
Definition: MDXModel.h:61
A collection of animation sequences.
Definition: Sequence.h:26