Panda3D
|
Encapsulates the data from a DisplayRegion, pre-fetched for one stage of the pipeline. More...
#include "displayRegion.h"
Public Member Functions | |
DisplayRegionPipelineReader (const DisplayRegionPipelineReader ©)=delete | |
DisplayRegionPipelineReader (DisplayRegion *object, Thread *current_thread) | |
PN_stdfloat | get_bottom (int i=0) const |
Retrieves the y coordinate of the bottom edge of the rectangle within its GraphicsOutput. | |
NodePath | get_camera () const |
Returns the camera associated with this DisplayRegion, or an empty NodePath if no camera is associated. | |
bool | get_clear_depth_between_eyes () const |
Thread * | get_current_thread () const |
void | get_dimensions (int i, PN_stdfloat &l, PN_stdfloat &r, PN_stdfloat &b, PN_stdfloat &t) const |
Retrieves the coordinates of the DisplayRegion's rectangle within its GraphicsOutput. | |
const LVecBase4 & | get_dimensions (int i=0) const |
Retrieves the coordinates of the DisplayRegion's rectangle within its GraphicsOutput. | |
void | get_dimensions (PN_stdfloat &l, PN_stdfloat &r, PN_stdfloat &b, PN_stdfloat &t) const |
Retrieves the coordinates of the DisplayRegion's rectangle within its GraphicsOutput. | |
CallbackObject * | get_draw_callback () const |
Returns the CallbackObject set by set_draw_callback(). | |
PN_stdfloat | get_left (int i=0) const |
Retrieves the x coordinate of the left edge of the rectangle within its GraphicsOutput. | |
int | get_lens_index () const |
Gets the index into a lens_node lens array. | |
int | get_num_regions () const |
Returns the number of regions, see set_num_regions. | |
DisplayRegion * | get_object () const |
GraphicsPipe * | get_pipe () const |
Returns the GraphicsPipe that this DisplayRegion is ultimately associated with, or NULL if no pipe is associated. | |
int | get_pixel_height (int i=0) const |
Returns the height of the DisplayRegion in pixels. | |
int | get_pixel_width (int i=0) const |
Returns the width of the DisplayRegion in pixels. | |
void | get_pixels (int &pl, int &pr, int &pb, int &pt) const |
Retrieves the coordinates of the DisplayRegion within its window, in pixels. | |
void | get_pixels (int i, int &pl, int &pr, int &pb, int &pt) const |
Retrieves the coordinates of the DisplayRegion within its window, in pixels. | |
void | get_region_pixels (int &xo, int &yo, int &w, int &h) const |
Retrieves the coordinates of the DisplayRegion within its window, as the pixel location of its bottom-left corner, along with a pixel width and height. | |
void | get_region_pixels (int i, int &xo, int &yo, int &w, int &h) const |
Retrieves the coordinates of the DisplayRegion within its window, as the pixel location of its bottom-left corner, along with a pixel width and height. | |
void | get_region_pixels_i (int &xo, int &yo, int &w, int &h) const |
Similar to get_region_pixels(), but returns the upper left corner, and the pixel numbers are numbered from the top-left corner down, in the DirectX way of things. | |
void | get_region_pixels_i (int i, int &xo, int &yo, int &w, int &h) const |
Similar to get_region_pixels(), but returns the upper left corner, and the pixel numbers are numbered from the top-left corner down, in the DirectX way of things. | |
PN_stdfloat | get_right (int i=0) const |
Retrieves the x coordinate of the right edge of the rectangle within its GraphicsOutput. | |
bool | get_scissor_enabled () const |
Returns whether or not scissor testing is enabled for this region. | |
int | get_sort () const |
Returns the sort value associated with the DisplayRegion. | |
Lens::StereoChannel | get_stereo_channel () const |
Returns whether the DisplayRegion is specified as the left or right channel of a stereo pair, or whether it is a normal, monocular image. | |
int | get_target_tex_page () const |
Returns the target page number associated with this particular DisplayRegion, or -1 if it is not associated with a page. | |
int | get_tex_view_offset () |
Returns the current texture view offset for this DisplayRegion. | |
PN_stdfloat | get_top (int i=0) const |
Retrieves the y coordinate of the top edge of the rectangle within its GraphicsOutput. | |
GraphicsOutput * | get_window () const |
Returns the GraphicsOutput that this DisplayRegion is ultimately associated with, or NULL if no window is associated. | |
bool | is_active () const |
Returns the active flag associated with the DisplayRegion. | |
bool | is_any_clear_active () const |
void | operator= (const DisplayRegionPipelineReader ©)=delete |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Encapsulates the data from a DisplayRegion, pre-fetched for one stage of the pipeline.
Definition at line 312 of file displayRegion.h.
|
inline |
Definition at line 564 of file displayRegion.I.
|
inline |
Definition at line 581 of file displayRegion.I.
|
inline |
Retrieves the y coordinate of the bottom edge of the rectangle within its GraphicsOutput.
This number will be in the range [0..1].
Definition at line 682 of file displayRegion.I.
|
inline |
Returns the camera associated with this DisplayRegion, or an empty NodePath if no camera is associated.
Definition at line 709 of file displayRegion.I.
Referenced by PT(), and GraphicsEngine::render_frame().
|
inlinestatic |
Definition at line 367 of file displayRegion.h.
|
inline |
Definition at line 608 of file displayRegion.I.
|
inline |
Retrieves the coordinates of the DisplayRegion's rectangle within its GraphicsOutput.
These numbers will be in the range [0..1].
Definition at line 642 of file displayRegion.I.
|
inline |
Retrieves the coordinates of the DisplayRegion's rectangle within its GraphicsOutput.
These numbers will be in the range [0..1].
Definition at line 655 of file displayRegion.I.
|
inline |
Retrieves the coordinates of the DisplayRegion's rectangle within its GraphicsOutput.
These numbers will be in the range [0..1].
Definition at line 633 of file displayRegion.I.
References get_dimensions().
Referenced by get_dimensions().
|
inline |
Returns the CallbackObject set by set_draw_callback().
Definition at line 775 of file displayRegion.I.
|
inline |
Retrieves the x coordinate of the left edge of the rectangle within its GraphicsOutput.
This number will be in the range [0..1].
Definition at line 664 of file displayRegion.I.
|
inline |
Gets the index into a lens_node lens array.
0 default
Definition at line 861 of file displayRegion.I.
Referenced by PT().
|
inline |
Returns the number of regions, see set_num_regions.
Definition at line 624 of file displayRegion.I.
|
inline |
Definition at line 600 of file displayRegion.I.
GraphicsPipe * DisplayRegionPipelineReader::get_pipe | ( | ) | const |
Returns the GraphicsPipe that this DisplayRegion is ultimately associated with, or NULL if no pipe is associated.
Definition at line 784 of file displayRegion.cxx.
|
inline |
Returns the height of the DisplayRegion in pixels.
Definition at line 869 of file displayRegion.I.
Referenced by PT().
|
inline |
Returns the width of the DisplayRegion in pixels.
Definition at line 853 of file displayRegion.I.
Referenced by PT().
|
inline |
Retrieves the coordinates of the DisplayRegion within its window, in pixels.
Definition at line 784 of file displayRegion.I.
References get_pixels().
Referenced by get_pixels().
|
inline |
Retrieves the coordinates of the DisplayRegion within its window, in pixels.
Definition at line 793 of file displayRegion.I.
|
inline |
Retrieves the coordinates of the DisplayRegion within its window, as the pixel location of its bottom-left corner, along with a pixel width and height.
Definition at line 807 of file displayRegion.I.
References get_region_pixels().
Referenced by get_region_pixels().
|
inline |
Retrieves the coordinates of the DisplayRegion within its window, as the pixel location of its bottom-left corner, along with a pixel width and height.
Definition at line 817 of file displayRegion.I.
|
inline |
Similar to get_region_pixels(), but returns the upper left corner, and the pixel numbers are numbered from the top-left corner down, in the DirectX way of things.
Definition at line 831 of file displayRegion.I.
References get_region_pixels_i().
Referenced by get_region_pixels_i(), and DXGraphicsStateGuardian9::prepare_display_region().
|
inline |
Similar to get_region_pixels(), but returns the upper left corner, and the pixel numbers are numbered from the top-left corner down, in the DirectX way of things.
Definition at line 841 of file displayRegion.I.
|
inline |
Retrieves the x coordinate of the right edge of the rectangle within its GraphicsOutput.
This number will be in the range [0..1].
Definition at line 673 of file displayRegion.I.
|
inline |
Returns whether or not scissor testing is enabled for this region.
The default is true, except for the overlay display region.
Definition at line 767 of file displayRegion.I.
|
inline |
Returns the sort value associated with the DisplayRegion.
Definition at line 725 of file displayRegion.I.
|
inline |
Returns whether the DisplayRegion is specified as the left or right channel of a stereo pair, or whether it is a normal, monocular image.
See set_stereo_channel().
Definition at line 735 of file displayRegion.I.
Referenced by GraphicsStateGuardian::prepare_display_region().
|
inline |
Returns the target page number associated with this particular DisplayRegion, or -1 if it is not associated with a page.
See set_target_tex_page().
Definition at line 758 of file displayRegion.I.
Referenced by GraphicsOutput::change_scenes().
|
inline |
Returns the current texture view offset for this DisplayRegion.
This is normally set to zero. If nonzero, it is used to select a particular view of any multiview textures that are rendered within this DisplayRegion.
For a StereoDisplayRegion, this is normally 0 for the left eye, and 1 for the right eye, to support stereo textures.
Definition at line 748 of file displayRegion.I.
Referenced by GraphicsStateGuardian::prepare_display_region().
|
inline |
Retrieves the y coordinate of the top edge of the rectangle within its GraphicsOutput.
This number will be in the range [0..1].
Definition at line 691 of file displayRegion.I.
|
inline |
Returns the GraphicsOutput that this DisplayRegion is ultimately associated with, or NULL if no window is associated.
Definition at line 700 of file displayRegion.I.
Referenced by GraphicsStateGuardian::prepare_display_region(), and PT().
|
inlinestatic |
Definition at line 370 of file displayRegion.h.
|
inline |
Returns the active flag associated with the DisplayRegion.
Definition at line 717 of file displayRegion.I.
|
inline |
Definition at line 616 of file displayRegion.I.