-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloth_vclass.cpp
55 lines (46 loc) · 1.43 KB
/
cloth_vclass.cpp
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
//--------------------------------------------------------------------------------------
// File: cloth.cpp
//
// Original algorithm extracted from the white paper:
// Advanced Character Physics by Thomas Jakobsen
// http://www.teknikus.dk/tj/gdc2001.htm
///////////////////////////////////////////////////////////////////////////////
//--------------------------------------------------------------------------------------
#include "DXUT.h"
#include "DXUTgui.h"
#include "DXUTguiIME.h"
#include "DXUTcamera.h"
#include "DXUTsettingsdlg.h"
#include "SDKmesh.h"
#include "SDKmisc.h"
#include "resource.h"
#include <xaudio2.h>
#include <xmmintrin.h>
#include <emmintrin.h>
#include <math.h>
#include "common.h"
#include "vclass.h"
#include "vclass_typedef.h"
#include "vclass_simdtype.h"
#include "cloth.h"
///////////////////////////////////////////////////////////////////////////////
// Consts & Defines
///////////////////////////////////////////////////////////////////////////////
#define VCLASS_PI (3.1415926535897932384626433832795f)
#define VCLASS_DTOR(angle) ((VCLASS_PI/180.0f)*((float)angle))
#define VCLASS_RTOD(angle) ((180.0f/VCLASS_PI)*((float)angle))
namespace CLOTH_VCLASS
{
using namespace VCLASS;
#include "cloth_vclass.inl"
}
namespace CLOTH_VCLASS_TYPEDEF
{
using namespace VCLASS_TYPEDEF;
#include "cloth_vclass.inl"
}
namespace CLOTH_VCLASS_SIMDTYPE
{
using namespace VCLASS_SIMDTYPE;
#include "cloth_vclass.inl"
}