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 <<
")";
56 Thread *current_thread = Thread::get_current_thread();
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);
set_scene
Sets the SceneSetup object that indicates the initial camera position, etc.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void upcall()
You should make this call during the callback if you want to continue the normal rendering function t...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
is_stereo
Returns true if this is a StereoDisplayRegion, false otherwise.
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This stores the result of a BinCullHandler traversal: an ordered collection of CullBins,...
get_window
Returns the GraphicsOutput that this DisplayRegion is ultimately associated with, or NULL if no windo...
A thread; that is, a lightweight process.
Encapsulates all the communication with a particular instance of a given rendering backend.
virtual void end_scene()
Called between begin_frame() and end_frame() to mark the end of drawing commands for a "scene" (usual...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
DisplayRegion * get_display_region() const
Returns the display region for the scene.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This object holds the camera position, etc., and other general setup information for rendering a part...
virtual bool begin_scene()
Called between begin_frame() and end_frame() to mark the beginning of drawing commands for a "scene" ...