Wrapper for a viewer, eye, and surface bound to a display config. DOES NOT provide lifetime management for the associated display config! More...
#include <osvr/ClientKit/Display.h>
Public Member Functions | |
RelativeViewport | getRelativeViewport () const |
Gets the video-input-relative viewport corresponding to this surface. More... | |
void | getProjectionMatrix (double near, double far, OSVR_MatrixConventions flags, double matrix[OSVR_MATRIX_SIZE]) const |
Gets the projection matrix. More... | |
void | getProjectionMatrix (float near, float far, OSVR_MatrixConventions flags, float matrix[OSVR_MATRIX_SIZE]) const |
ProjectionClippingPlanes | getProjectionClippingPlanes () const |
Gets the clipping planes. More... | |
bool | isDistortionRequested () const |
Determines if the description of the surface requests any distortion to be performed. More... | |
OSVR_DistortionPriority | getRadialDistortionPriority () |
Get the priority/availability of radial distortion parameters for this surface. Negative values (canonically, OSVR_DISTORTION_PRIORITY_UNAVAILABLE) indicate that this distortion strategy is not available/parameterized for the surface in question. Larger values indicate more highly-preferred distortion strategies. More... | |
OSVR_RadialDistortionParameters | getRadialDistortion () |
Get the radial distortion parameters. More... | |
Identification getters | |
OSVR_DisplayConfig | getDisplayConfig () const |
OSVR_ViewerCount | getViewerID () const |
OSVR_EyeCount | getEyeID () const |
OSVR_SurfaceCount | getSurfaceID () const |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (Surface const &lhs, Surface const &rhs) |
Equality operator for clientkit::Surface. More... | |
bool | operator!= (Surface const &lhs, Surface const &rhs) |
Inequality operator for clientkit::Surface. More... | |
Wrapper for a viewer, eye, and surface bound to a display config. DOES NOT provide lifetime management for the associated display config!
|
inline |
Gets the video-input-relative viewport corresponding to this surface.
|
inline |
Gets the projection matrix.
|
inline |
|
inline |
Gets the clipping planes.
|
inline |
Determines if the description of the surface requests any distortion to be performed.
|
inline |
Get the priority/availability of radial distortion parameters for this surface. Negative values (canonically, OSVR_DISTORTION_PRIORITY_UNAVAILABLE) indicate that this distortion strategy is not available/parameterized for the surface in question. Larger values indicate more highly-preferred distortion strategies.
|
inline |
Get the radial distortion parameters.
Will only succeed if getRadialDistortionPriority() is non-negative.