28 for (oi = _objects.begin(); oi != _objects.end(); ++oi) {
48 _objects.push_back(
object);
56 PStatTimer timer(_draw_this_pcollector, current_thread);
59 for (oi = _objects.begin(); oi != _objects.end(); ++oi) {
62 if (object->_draw_callback ==
nullptr) {
63 nassertd(object->_geom !=
nullptr)
continue;
65 _gsg->set_state_and_transform(object->_state, object->_internal_transform);
69 data_reader.check_array_readers();
70 geom_reader.
draw(_gsg, &data_reader, force);
73 object->draw_callback(_gsg, force, current_thread);
83 void CullBinUnsorted::
84 fill_result_graph(CullBin::ResultGraphBuilder &builder) {
85 Objects::const_iterator oi;
86 for (oi = _objects.begin(); oi != _objects.end(); ++oi) {
88 builder.add_object(
object);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static CullBin * make_bin(const std::string &name, GraphicsStateGuardianBase *gsg, const PStatCollector &draw_region_pcollector)
Factory constructor for passing to the CullBinManager.
A collection of Geoms and their associated state, for a particular scene.
A specific kind of CullBin that does not reorder the geometry; it simply passes it through to the GSG...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A lightweight class that can be used to automatically start and stop a PStatCollector around a sectio...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Encapsulates the data from a Geom, pre-fetched for one stage of the pipeline.
bool draw(GraphicsStateGuardianBase *gsg, const GeomVertexDataPipelineReader *data_reader, bool force) const
The implementation of Geom::draw().
A lightweight class that represents a single element that may be timed and/or counted via stats.
The smallest atom of cull.
virtual void draw(bool force, Thread *current_thread)
Draws all the objects in the bin, in the appropriate order.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
A thread; that is, a lightweight process.
Encapsulates the data from a GeomVertexData, pre-fetched for one stage of the pipeline.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void add_object(CullableObject *object, Thread *current_thread)
Adds a geom, along with its associated state, to the bin for rendering.