68 ResultGraphBuilder builder(root_node);
69 fill_result_graph(builder);
76 CullBin::ResultGraphBuilder::
77 ResultGraphBuilder(
PandaNode *root_node) :
87 void CullBin::ResultGraphBuilder::
89 if (_current_transform != object->_internal_transform ||
90 _current_state != object->_state) {
94 _current_transform =
object->_internal_transform;
95 _current_state =
object->_state;
96 _current_node =
new GeomNode(
"object_" + format_string(_object_index));
97 _root_node->add_child(_current_node);
98 _current_node->set_transform(_current_transform);
99 _current_node->set_state(_current_state);
102 record_one_object(_current_node,
object);
109 void CullBin::ResultGraphBuilder::
111 PT(
Geom) new_geom =
object->_geom->make_copy();
112 new_geom->set_vertex_data(object->_munged_data);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A collection of Geoms and their associated state, for a particular scene.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A lightweight class that represents a single element that may be timed and/or counted via stats.
The smallest atom of cull.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A container for geometry primitives.
PT(CullBin) CullBin
Returns a newly-allocated CullBin object that contains a copy of just the subset of the data from thi...
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
This object holds the camera position, etc., and other general setup information for rendering a part...
A node that holds Geom objects, renderable pieces of geometry.
void add_geom(Geom *geom, const RenderState *state=RenderState::make_empty())
Adds a new Geom to the node.