Panda3D
|
This specialization on CallbackData is passed when the callback is initiated from the draw traversal, for a DisplayRegion. More...
#include "displayRegionDrawCallbackData.h"
Public Member Functions | |
DisplayRegionDrawCallbackData (CullResult *cull_result, SceneSetup *scene_setup) | |
virtual TypeHandle | force_init_type () |
CullResult * | get_cull_result () const |
Returns a pointer to the CullResult, the list of CullableObjects that should be drawn in this DisplayRegion. | |
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 (std::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. | |
![]() | |
TypedObject (const TypedObject ©)=default | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. | |
TypedObject & | operator= (const TypedObject ©)=default |
![]() | |
void | operator delete (void *, void *) |
void | operator delete (void *ptr) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t size) |
void * | operator new (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
void * | operator new[] (size_t size, void *ptr) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
get_type | |
This specialization on CallbackData is passed when the callback is initiated from the draw traversal, for a DisplayRegion.
Definition at line 27 of file displayRegionDrawCallbackData.h.
DisplayRegionDrawCallbackData::DisplayRegionDrawCallbackData | ( | CullResult * | cull_result, |
SceneSetup * | scene_setup ) |
Definition at line 29 of file displayRegionDrawCallbackData.cxx.
|
inlinevirtual |
Reimplemented from CallbackData.
Definition at line 55 of file displayRegionDrawCallbackData.h.
|
inlinestatic |
Definition at line 44 of file displayRegionDrawCallbackData.h.
|
inline |
Returns a pointer to the CullResult, the list of CullableObjects that should be drawn in this DisplayRegion.
Definition at line 18 of file displayRegionDrawCallbackData.I.
|
inline |
Returns a pointer to the SceneSetup object, which contains information about the camera and such.
Definition at line 27 of file displayRegionDrawCallbackData.I.
|
inlinevirtual |
Reimplemented from CallbackData.
Definition at line 52 of file displayRegionDrawCallbackData.h.
|
inlinestatic |
Definition at line 47 of file displayRegionDrawCallbackData.h.
|
virtual |
Reimplemented from CallbackData.
Definition at line 39 of file displayRegionDrawCallbackData.cxx.
|
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 draw all of the objects in the CullResult list that have been built up for the DisplayRegion during the cull traversal.
Reimplemented from CallbackData.
Definition at line 54 of file displayRegionDrawCallbackData.cxx.
References GraphicsStateGuardian::begin_scene(), GraphicsStateGuardian::clear_state_and_transform(), CullResult::draw(), GraphicsStateGuardian::end_scene(), Thread::get_current_thread, SceneSetup::get_display_region(), DisplayRegion::get_window, DisplayRegion::is_stereo, and GraphicsStateGuardian::set_scene.