Panda3D
Public Member Functions | Static Public Member Functions
DisplayRegionDrawCallbackData Class Reference

This specialization on CallbackData is passed when the callback is initiated from the draw traversal, for a DisplayRegion. More...

#include "displayRegionDrawCallbackData.h"

Inheritance diagram for DisplayRegionDrawCallbackData:
CallbackData TypedObject MemoryBase

List of all members.

Public Member Functions

 DisplayRegionDrawCallbackData (CullResult *cull_result, SceneSetup *scene_setup)
virtual TypeHandle force_init_type ()
CullResultget_cull_result () const
 Returns a pointer to the CullResult, the list of CullableObjects that should be drawn in this DisplayRegion.
SceneSetupget_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.

Detailed Description

This specialization on CallbackData is passed when the callback is initiated from the draw traversal, for a DisplayRegion.

Definition at line 30 of file displayRegionDrawCallbackData.h.


Member Function Documentation

Returns a pointer to the CullResult, the list of CullableObjects that should be drawn in this DisplayRegion.

Definition at line 24 of file displayRegionDrawCallbackData.I.

Returns a pointer to the SceneSetup object, which contains information about the camera and such.

Definition at line 35 of file displayRegionDrawCallbackData.I.

static void DisplayRegionDrawCallbackData::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 displayRegionDrawCallbackData.h.

References CallbackData::init_type().

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 57 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(), GraphicsOutput::get_gsg(), DisplayRegion::get_window(), DisplayRegion::is_stereo(), and GraphicsStateGuardian::set_scene().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations