Panda3D

physxSoftBodyNode.I

00001 // Filename: physxSoftBodyNode.I
00002 // Created by:  enn0x (13Sep10)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 
00017 ////////////////////////////////////////////////////////////////////
00018 //     Function: PhysxSoftBodyNode::Constructor
00019 //       Access: Published
00020 //  Description:
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE PhysxSoftBodyNode::
00023 PhysxSoftBodyNode(const char *name) : GeomNode(name) {
00024 
00025   _vdata = new GeomVertexData("", GeomVertexFormat::get_v3n3t2(), Geom::UH_stream);
00026 
00027   _prim = new GeomTriangles(Geom::UH_stream);
00028   _prim->set_shade_model(Geom::SM_uniform);
00029 
00030   _geom = new Geom(_vdata);
00031   _geom->add_primitive(_prim);
00032 
00033   this->add_geom(_geom);
00034 }
00035 
00036 ////////////////////////////////////////////////////////////////////
00037 //     Function: PhysxSoftBodyNode::Destructor
00038 //       Access: Published
00039 //  Description:
00040 ////////////////////////////////////////////////////////////////////
00041 INLINE PhysxSoftBodyNode::
00042 ~PhysxSoftBodyNode() {
00043 
00044 }
00045 
 All Classes Functions Variables Enumerations