Panda3D
|
This specialization on CallbackData is passed when the callback is initiated from the cull traversal, for a DisplayRegion. More...
#include "displayRegionCullCallbackData.h"
Public Member Functions | |
DisplayRegionCullCallbackData (CullHandler *cull_handler, SceneSetup *scene_setup) | |
virtual TypeHandle | force_init_type () |
CullHandler * | get_cull_handler () const |
Returns a pointer to the CullHandler, which accepts each object to be added to the list for drawing. | |
SceneSetup * | get_scene_setup () const |
Returns a pointer to the SceneSetup object, which contains information about the camera and such. | |
virtual TypeHandle | get_type () const |
virtual void | output (ostream &out) const |
virtual void | upcall () |
You should make this call during the callback if you want to continue the normal rendering function that would have been done in the absence of a callback. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
This specialization on CallbackData is passed when the callback is initiated from the cull traversal, for a DisplayRegion.
Definition at line 30 of file displayRegionCullCallbackData.h.
CullHandler * DisplayRegionCullCallbackData::get_cull_handler | ( | ) | const [inline] |
Returns a pointer to the CullHandler, which accepts each object to be added to the list for drawing.
Definition at line 23 of file displayRegionCullCallbackData.I.
SceneSetup * DisplayRegionCullCallbackData::get_scene_setup | ( | ) | const [inline] |
Returns a pointer to the SceneSetup object, which contains information about the camera and such.
Definition at line 34 of file displayRegionCullCallbackData.I.
static void DisplayRegionCullCallbackData::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from CallbackData.
Definition at line 50 of file displayRegionCullCallbackData.h.
References CallbackData::init_type().
void DisplayRegionCullCallbackData::upcall | ( | ) | [virtual] |
You should make this call during the callback if you want to continue the normal rendering function that would have been done in the absence of a callback.
Specifically, this method will perform the cull traversal for the DisplayRegion's scene graph, and add all renderable objects to its CullResult.
Reimplemented from CallbackData.
Definition at line 58 of file displayRegionCullCallbackData.cxx.
References DisplayRegion::do_cull(), Thread::get_current_thread(), SceneSetup::get_display_region(), GraphicsOutput::get_gsg(), and DisplayRegion::get_window().