14#ifndef STEREODISPLAYREGION_H
15#define STEREODISPLAYREGION_H
32class EXPCL_PANDA_DISPLAY StereoDisplayRegion :
public DisplayRegion {
34 StereoDisplayRegion(GraphicsOutput *window,
35 const LVecBase4 &dimensions,
36 DisplayRegion *left, DisplayRegion *right);
39 virtual ~StereoDisplayRegion();
61 virtual void output(std::ostream &out)
const;
70 PT(DisplayRegion) _left_eye;
71 PT(DisplayRegion) _right_eye;
77 static void init_type() {
78 DisplayRegion::init_type();
80 DisplayRegion::get_class_type());
82 virtual TypeHandle get_type()
const {
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
88 static TypeHandle _type_handle;
90 friend class GraphicsOutput;
91 friend class DisplayRegionPipelineReader;
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
is_stereo
Returns true if this is a StereoDisplayRegion, false otherwise.
set_camera
Sets the camera that is associated with this DisplayRegion.
set_tex_view_offset
Sets the current texture view offset for this DisplayRegion.
virtual PointerTo< PandaNode > make_cull_result_graph()
Returns a special scene graph constructed to represent the results of the last frame's cull operation...
set_target_tex_page
This is a special parameter that is only used when rendering the faces of a cube map or multipage and...
set_sort
Sets the sort value associated with the DisplayRegion.
set_cull_traverser
Specifies the CullTraverser that will be used to draw the contents of this DisplayRegion.
set_dimensions
Changes the portion of the framebuffer this DisplayRegion corresponds to.
set_active
Sets the active flag associated with the DisplayRegion.
set_stereo_channel
Specifies whether the DisplayRegion represents the left or right channel of a stereo pair,...
set_texture_reload_priority
Specifies an integer priority which is assigned to any asynchronous texture reload requests spawned w...
set_incomplete_render
Sets the incomplete_render flag.
set_pixel_zoom
Sets the amount by which the pixels of the region are scaled internally when filling the image intera...
virtual void set_clear_value(int n, const LColor &clear_value)
Sets the clear value for any bitplane.
virtual void set_clear_active(int n, bool clear_aux_active)
Sets the clear-active flag for any bitplane.
virtual void disable_clears()
Disables both the color and depth clear.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
A basic node of the scene graph or data graph.
get_right_eye
Returns a pointer to the right DisplayRegion managed by this stereo object.
get_left_eye
Returns a pointer to the left DisplayRegion managed by this stereo 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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.