15 #include "displayRegionCullCallbackData.h"
16 #include "cullHandler.h"
17 #include "sceneSetup.h"
18 #include "graphicsEngine.h"
20 TypeHandle DisplayRegionCullCallbackData::_type_handle;
28 DisplayRegionCullCallbackData::
30 _cull_handler(cull_handler),
31 _scene_setup(scene_setup)
40 void DisplayRegionCullCallbackData::
41 output(ostream &out)
const {
42 out << get_type() <<
"(" << (
void *)_cull_handler <<
", "
43 << (
void *)_scene_setup <<
")";
63 dr->do_cull(_cull_handler, _scene_setup, gsg, current_thread);
virtual void upcall()
You should make this call during the callback if you want to continue the normal rendering function t...
DisplayRegion * get_display_region() const
Returns the display region for the scene.
static Thread * get_current_thread()
Returns a pointer to the currently-executing Thread object.
This defines the abstract interface for an object that receives Geoms identified by the CullTraverser...
GraphicsOutput * get_window() const
Returns the GraphicsOutput that this DisplayRegion is ultimately associated with, or NULL if no windo...
GraphicsStateGuardian * get_gsg() const
Returns the GSG that is associated with this window.
A thread; that is, a lightweight process.
Encapsulates all the communication with a particular instance of a given rendering backend...
A rectangular subregion within a window for rendering into.
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...