Go to the documentation of this file.
23 TypeHandle DisplayRegionDrawCallbackData::_type_handle;
29 DisplayRegionDrawCallbackData::
31 _cull_result(cull_result),
32 _scene_setup(scene_setup)
39 void DisplayRegionDrawCallbackData::
40 output(std::ostream &out)
const {
41 out << get_type() <<
"(" << (
void *)_cull_result <<
", "
42 << (
void *)_scene_setup <<
")";
60 if (_cull_result ==
nullptr || _scene_setup ==
nullptr) {
70 }
else if (!gsg->
set_scene(_scene_setup)) {
73 << gsg->get_type() <<
" cannot render scene with specified lens.\n";
80 _cull_result->
draw(current_thread);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
DisplayRegion * get_display_region() const
Returns the display region for the scene.
virtual void upcall()
You should make this call during the callback if you want to continue the normal rendering function t...
A rectangular subregion within a window for rendering into.
void draw(Thread *current_thread)
Asks all the bins to draw themselves in the correct order.
get_current_thread
Returns a pointer to the currently-executing Thread object.
This object holds the camera position, etc., and other general setup information for rendering a part...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool begin_scene()
Called between begin_frame() and end_frame() to mark the beginning of drawing commands for a "scene" ...
set_scene
Sets the SceneSetup object that indicates the initial camera position, etc.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void clear_state_and_transform()
Forgets the current graphics state and current transform, so that the next call to set_state_and_tran...
virtual void end_scene()
Called between begin_frame() and end_frame() to mark the end of drawing commands for a "scene" (usual...
is_stereo
Returns true if this is a StereoDisplayRegion, false otherwise.
get_window
Returns the GraphicsOutput that this DisplayRegion is ultimately associated with, or NULL if no windo...
Encapsulates all the communication with a particular instance of a given rendering backend.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A thread; that is, a lightweight process.
This stores the result of a BinCullHandler traversal: an ordered collection of CullBins,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.