23TypeHandle DisplayRegionDrawCallbackData::_type_handle;
29DisplayRegionDrawCallbackData::
31 _cull_result(cull_result),
32 _scene_setup(scene_setup)
39void DisplayRegionDrawCallbackData::
40output(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);
This stores the result of a BinCullHandler traversal: an ordered collection of CullBins,...
void draw(Thread *current_thread)
Asks all the bins to draw themselves in the correct order.
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.
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.
set_scene
Sets the SceneSetup object that indicates the initial camera position, etc.
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...
virtual bool begin_scene()
Called between begin_frame() and end_frame() to mark the beginning of drawing commands for a "scene" ...
This object holds the camera position, etc., and other general setup information for rendering a part...
DisplayRegion * get_display_region() const
Returns the display region for the scene.
A thread; that is, a lightweight process.
get_current_thread
Returns a pointer to the currently-executing Thread object.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.