PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
Go to the source code of this file.
Functions | |
CPT (Geom) GeomNode | |
Returns the nth geom of the node. More... | |
CPT (GeomNode::GeomList) GeomNode | |
Returns a read-only pointer to the _geoms list. More... | |
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."
Definition in file geomNode.I.
|
inline |
Returns the nth geom of the node.
This object should not be modified, since the same object might be shared between multiple different GeomNodes, but see modify_geom(). Returns the nth geom of the node, suitable for modifying it. If the nth Geom has multiple reference counts to it, reassigns it to an identical copy first, and returns the new copy–this provides a "copy on write" that ensures that the Geom that is returned is unique to this GeomNode and is not shared with any other GeomNodes.
Note that if this method is called in a downstream stage (for instance, during cull or draw), then it will propagate the new list of Geoms upstream all the way to pipeline stage 0, which may step on changes that were made independently in pipeline stage 0. Use with caution.
Definition at line 47 of file geomNode.I.
|
inline |
Returns a read-only pointer to the _geoms list.
Returns a modifiable, unique pointer to the _geoms list.
Definition at line 204 of file geomNode.I.