14#ifndef CULLBINUNSORTED_H
15#define CULLBINUNSORTED_H
27class EXPCL_PANDA_CULL CullBinUnsorted :
public CullBin {
29 INLINE CullBinUnsorted(
const std::string &name,
34 static CullBin *
make_bin(
const std::string &name,
39 virtual void draw(
bool force,
Thread *current_thread);
42 virtual void fill_result_graph(ResultGraphBuilder &builder);
45 typedef pvector<CullableObject *> Objects;
52 static void init_type() {
55 CullBin::get_class_type());
58 return get_class_type();
60 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual void add_object(CullableObject *object, Thread *current_thread)
Adds a geom, along with its associated state, to the bin for rendering.
virtual void draw(bool force, Thread *current_thread)
Draws all the objects in the bin, in the appropriate order.
static CullBin * make_bin(const std::string &name, GraphicsStateGuardianBase *gsg, const PStatCollector &draw_region_pcollector)
Factory constructor for passing to the CullBinManager.
The smallest atom of cull.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
A lightweight class that represents a single element that may be timed and/or counted via stats.
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...