16 #include "config_pgraph.h" 17 #include "pandaNode.h" 19 #include "cullableObject.h" 20 #include "decalEffect.h" 21 #include "string_utils.h" 85 ResultGraphBuilder builder(root_node);
86 fill_result_graph(builder);
95 CullBin::ResultGraphBuilder::
96 ResultGraphBuilder(
PandaNode *root_node) :
109 void CullBin::ResultGraphBuilder::
111 if (_current_transform != object->_internal_transform ||
112 _current_state != object->_state) {
116 _current_transform =
object->_internal_transform;
117 _current_state =
object->_state;
118 _current_node =
new GeomNode(
"object_" + format_string(_object_index));
119 _root_node->add_child(_current_node);
120 _current_node->set_transform(_current_transform);
121 _current_node->set_state(_current_state);
124 record_one_object(_current_node,
object);
133 void CullBin::ResultGraphBuilder::
135 PT(
Geom) new_geom =
object->_geom->make_copy();
136 new_geom->set_vertex_data(object->_munged_data);
A basic node of the scene graph or data graph.
A collection of Geoms and their associated state, for a particular scene.
A lightweight class that represents a single element that may be timed and/or counted via stats...
The smallest atom of cull.
A container for geometry primitives.
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.