Panda3D
Loading...
Searching...
No Matches
physxSoftBodyNode.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxSoftBodyNode.I
10 * @author enn0x
11 * @date 2010-09-13
12 */
13
14/**
15 *
16 */
17INLINE PhysxSoftBodyNode::
18PhysxSoftBodyNode(const char *name) : GeomNode(name) {
19
20 _vdata = new GeomVertexData("", GeomVertexFormat::get_v3n3t2(), Geom::UH_stream);
21
22 _prim = new GeomTriangles(Geom::UH_stream);
23 _prim->set_shade_model(Geom::SM_uniform);
24
25 _geom = new Geom(_vdata);
26 _geom->add_primitive(_prim);
27
28 this->add_geom(_geom);
29}
30
31/**
32 *
33 */
34INLINE PhysxSoftBodyNode::
35~PhysxSoftBodyNode() {
36
37}
A node that holds Geom objects, renderable pieces of geometry.
Definition geomNode.h:34
Defines a series of disconnected triangles.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
static const GeomVertexFormat * get_v3n3t2()
Returns a standard vertex format with a 2-component texture coordinate pair, a 3-component normal,...
A container for geometry primitives.
Definition geom.h:54