19 return _panda_framework;
28 if (_window !=
nullptr &&
29 _window->is_of_type(GraphicsWindow::get_class_type())) {
50 return _cameras.size();
58 nassertr(n >= 0 && n < (
int)_cameras.size(),
nullptr);
67 return _display_region_2d;
75 return _display_region_3d;
83 return _anim_controls_enabled;
91 return _wireframe_enabled;
99 return _wireframe_filled;
107 return _texture_enabled;
115 return _two_sided_enabled;
123 return _one_sided_reverse_enabled;
131 return _lighting_enabled;
139 return _perpixel_enabled;
147 return _background_type;
bool get_wireframe_filled() const
Returns the current state of the wireframe_filled flag.
bool get_wireframe() const
Returns the current state of the wireframe flag.
bool get_anim_controls() const
Returns the current state of the anim_controls flag.
GraphicsOutput * get_graphics_output() const
Returns a pointer to the underlying GraphicsOutput object.
bool get_one_sided_reverse() const
Returns the current state of the one_sided_reverse flag.
bool get_texture() const
Returns the current state of the texture flag.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
int get_num_cameras() const
Returns the number of 3-d cameras associated with the window.
bool get_two_sided() const
Returns the current state of the two_sided flag.
PandaFramework * get_panda_framework() const
Returns a pointer to the associated PandaFramework object.
BackgroundType get_background_type() const
Returns the current background type setting.
DisplayRegion * get_display_region_2d() const
Returns the default DisplayRegion created for the 2-d scene (render2d).
DisplayRegion * get_display_region_3d() const
Returns the default DisplayRegion created for the 3-d scene (render).
This is a base class for the various different classes that represent the result of a frame of render...
bool get_lighting() const
Returns the current state of the lighting flag.
A rectangular subregion within a window for rendering into.
This class serves to provide a high-level framework for basic applications that use Panda in simple w...
GraphicsWindow * get_graphics_window() const
Returns a pointer to the underlying GraphicsWindow object, if it is in fact a window; or NULL if it i...
Camera * get_camera(int n) const
Returns the nth camera associated with the window.
A node that can be positioned around in the scene graph to represent a point of view for rendering a ...
bool get_perpixel() const
Returns the current state of the perpixel flag.