Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/particlesystem/geomParticleRenderer.I

Go to the documentation of this file.
00001 // Filename: geomParticleRenderer.I
00002 // Created by:  charles (05Jul00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //  Function : set_geom_node
00021 //    Access : public
00022 ////////////////////////////////////////////////////////////////////
00023 
00024 // we're forcing a pool resize to remove every node in the vector.
00025 // this is because nodes are reference-counted, and we have to
00026 // explicitly remove them from the node they were previously parented
00027 // to.
00028 
00029 INLINE void GeomParticleRenderer::
00030 set_geom_node(PandaNode *node) {
00031   nassertv(node != (PandaNode *)NULL);
00032   _geom_node = node;
00033   resize_pool(_pool_size);
00034 }
00035 
00036 ////////////////////////////////////////////////////////////////////
00037 //  Function : get_geom_node
00038 //    Access : public
00039 ////////////////////////////////////////////////////////////////////
00040 
00041 INLINE PandaNode *GeomParticleRenderer::
00042 get_geom_node(void) {
00043   return _geom_node;
00044 }

Generated on Fri May 2 00:40:56 2003 for Panda by doxygen1.3