forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphysxClothNode.I
More file actions
45 lines (36 loc) · 883 Bytes
/
physxClothNode.I
File metadata and controls
45 lines (36 loc) · 883 Bytes
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
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file physxClothNode.I
* @author enn0x
* @date 2010-04-05
*/
/**
*
*/
INLINE PhysxClothNode::
PhysxClothNode(const char *name) : GeomNode(name) {
_numVertices = 0;
_vdata = new GeomVertexData("", GeomVertexFormat::get_v3n3t2(), Geom::UH_stream);
_prim = new GeomTriangles(Geom::UH_stream);
_prim->set_shade_model(Geom::SM_uniform);
_geom = new Geom(_vdata);
_geom->add_primitive(_prim);
this->add_geom(_geom);
_numTexcoords = 0;
_texcoords = nullptr;
}
/**
*
*/
INLINE PhysxClothNode::
~PhysxClothNode() {
if (_texcoords) {
delete [] _texcoords;
}
}