-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloth.h
65 lines (55 loc) · 2.61 KB
/
cloth.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//--------------------------------------------------------------------------------------
// File: cloth.h
//--------------------------------------------------------------------------------------
#ifndef __CLOTH__
#define __CLOTH__
#define CLOTH_NUM_ITERATIONS (8)
///////////////////////////////////////////////////////////////////////////////
// Externs
///////////////////////////////////////////////////////////////////////////////
namespace CLOTH_VCLASS_TYPEDEF
{
extern HRESULT ClothInit(void);
extern void ClothShutDown(void);
extern HRESULT ClothCopyVertices(bool addColor);
extern HRESULT ClothAnimateAndRender(IDirect3DDevice9* pd3dDevice, D3DXMATRIXA16* mWorld, D3DXMATRIXA16* mView, D3DXMATRIXA16* mProj, float fTimeStep, int reps, double *totalTimeOut);
extern void ClothSetGlobalParam(float rot, float trans, float gravity);
extern void ClothUIHack(void);
}
namespace CLOTH_VCLASS_SIMDTYPE
{
extern HRESULT ClothInit(void);
extern void ClothShutDown(void);
extern HRESULT ClothCopyVertices(bool addColor);
extern HRESULT ClothAnimateAndRender(IDirect3DDevice9* pd3dDevice, D3DXMATRIXA16* mWorld, D3DXMATRIXA16* mView, D3DXMATRIXA16* mProj, float fTimeStep, int reps, double *totalTimeOut);
extern void ClothSetGlobalParam(float rot, float trans, float gravity);
extern void ClothUIHack(void);
}
namespace CLOTH_VCLASS
{
extern HRESULT ClothInit(void);
extern void ClothShutDown(void);
extern HRESULT ClothCopyVertices(bool addColor);
extern HRESULT ClothAnimateAndRender(IDirect3DDevice9* pd3dDevice, D3DXMATRIXA16* mWorld, D3DXMATRIXA16* mView, D3DXMATRIXA16* mProj, float fTimeStep, int reps, double *totalTimeOut);
extern void ClothSetGlobalParam(float rot, float trans, float gravity);
extern void ClothUIHack(void);
}
namespace CLOTH_VMATH
{
extern HRESULT ClothInit(void);
extern void ClothShutDown(void);
extern HRESULT ClothCopyVertices(bool addColor);
extern HRESULT ClothAnimateAndRender(IDirect3DDevice9* pd3dDevice, D3DXMATRIXA16* mWorld, D3DXMATRIXA16* mView, D3DXMATRIXA16* mProj, float fTimeStep, int reps, double *totalTimeOut);
extern void ClothSetGlobalParam(float rot, float trans, float gravity);
extern void ClothUIHack(void);
}
namespace CLOTH_XNAMATH
{
extern HRESULT ClothInit(void);
extern void ClothShutDown(void);
extern HRESULT ClothCopyVertices(bool addColor);
extern HRESULT ClothAnimateAndRender(IDirect3DDevice9* pd3dDevice, D3DXMATRIXA16* mWorld, D3DXMATRIXA16* mView, D3DXMATRIXA16* mProj, float fTimeStep, int reps, double *totalTimeOut);
extern void ClothSetGlobalParam(float rot, float trans, float gravity);
extern void ClothUIHack(void);
}
#endif // #ifndef __CLOTH__