PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "geom.h"
#include "geomPoints.h"
#include "geomVertexReader.h"
#include "geomVertexRewriter.h"
#include "graphicsStateGuardianBase.h"
#include "preparedGraphicsObjects.h"
#include "pStatTimer.h"
#include "bamReader.h"
#include "bamWriter.h"
#include "boundingSphere.h"
#include "boundingBox.h"
#include "lightMutexHolder.h"
#include "config_mathutil.h"
Go to the source code of this file.
Functions | |
CPT (GeomVertexData) Geom | |
Returns a GeomVertexData that represents the results of computing the vertex animation on the CPU for this Geom's vertex data. More... | |
CPT (BoundingVolume) Geom | |
Returns the bounding volume for the Geom. More... | |
PT (CopyOnWriteObject) Geom | |
Required to implement CopyOnWriteObject. More... | |
PT (GeomVertexData) Geom | |
Returns a modifiable pointer to the GeomVertexData, so that application code may directly maniuplate the geom's underlying data. 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 geom.cxx.
CPT | ( | GeomVertexData | ) |
Returns a GeomVertexData that represents the results of computing the vertex animation on the CPU for this Geom's vertex data.
If there is no CPU-defined vertex animation on this object, this just returns the original object.
If there is vertex animation, but the VertexTransform values have not changed since last time, this may return the same pointer it returned previously. Even if the VertexTransform values have changed, it may still return the same pointer, but with its contents modified (this is preferred, since it allows the graphics backend to update vertex buffers optimally).
If force is false, this method may return immediately with stale data, if the vertex data is not completely resident. If force is true, this method will never return stale data, but may block until the data is available. Replaces the ith GeomPrimitive object stored within the Geom with the new object.
Don't call this in a downstream thread unless you don't mind it blowing away other changes you might have recently made in an upstream thread.
Definition at line 306 of file geom.cxx.
Referenced by Geom::check_valid(), and Geom::make_nonindexed().
CPT | ( | BoundingVolume | ) |
Returns the bounding volume for the Geom.
Returns the number of vertices rendered by all primitives within the Geom. Removes all of the previously-cached results of munge_geom().
This blows away the entire cache, upstream and downstream the pipeline. Use clear_cache_stage() instead if you only want to blow away the cache at the current stage and upstream.
PT | ( | CopyOnWriteObject | ) |
Required to implement CopyOnWriteObject.
Definition at line 43 of file geom.cxx.
References Geom::make_copy().
Referenced by Geom::make_nonindexed(), and Geom::unify_in_place().
PT | ( | GeomVertexData | ) |
Returns a modifiable pointer to the GeomVertexData, so that application code may directly maniuplate the geom's underlying data.
Don't call this in a downstream thread unless you don't mind it blowing away other changes you might have recently made in an upstream thread.
Definition at line 151 of file geom.cxx.
References Geom::clear_cache_stage().