29 #ifndef INCLUDED_DisplayC_h_GUID_8658EDC9_32A2_49A2_5F5C_10F67852AE74 30 #define INCLUDED_DisplayC_h_GUID_8658EDC9_32A2_49A2_5F5C_10F67852AE74 33 #include <osvr/ClientKit/Export.h> 101 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
113 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
126 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
179 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
227 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
311 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
342 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
365 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
389 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
421 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
446 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
474 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
495 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
uint8_t OSVR_CBool
A pre-C99-safe bool type.
Definition: BoolC.h:50
Parameters for a per-color-component radial distortion shader.
Definition: RadialDistortionParametersC.h:51
Header declaring a type and values for simple C return codes.
uint32_t OSVR_SurfaceCount
The integer type specifying the number of surfaces seen by a viewer's eye.
Definition: RenderingTypesC.h:108
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionMatrixd(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount surface, double near, double far, OSVR_MatrixConventions flags, double *matrix)
Get the projection matrix for a surface seen by an eye of a viewer in a display config.
Definition: DisplayC.cpp:350
Header providing a C-safe "bool" type, because we can't depend on Visual Studio providing proper C99 ...
Header declaring opaque types used by Client and ClientKit.
Definition: DisplayC.cpp:43
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientCheckDisplayStartup(OSVR_DisplayConfig disp)
Checks to see if a display is fully configured and ready, including having received its first pose up...
Definition: DisplayC.cpp:137
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetDisplay(OSVR_ClientContext ctx, OSVR_DisplayConfig *disp)
Allocates a display configuration object populated with data from the OSVR system.
Definition: DisplayC.cpp:65
int32_t OSVR_DistortionPriority
The integer type used to indicate relative priorities of a display distortion strategy.
Definition: RenderingTypesC.h:121
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetNumDisplayInputs(OSVR_DisplayConfig disp, OSVR_DisplayInputCount *numDisplayInputs)
A display config can have one or more display inputs to pass pixels over (HDMI/DVI connections...
Definition: DisplayC.cpp:144
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionClippingPlanes(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount surface, double *left, double *right, double *bottom, double *top)
Get the clipping planes (positions at unit distance) for a surface seen by an eye of a viewer in a di...
Definition: DisplayC.cpp:366
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyeViewMatrixf(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_MatrixConventions flags, float *mat)
Get the view matrix (inverse of pose) for the given eye of a viewer in a display config - matrix of f...
Definition: DisplayC.cpp:262
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetRelativeViewportForViewerEyeSurface(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount surface, OSVR_ViewportDimension *left, OSVR_ViewportDimension *bottom, OSVR_ViewportDimension *width, OSVR_ViewportDimension *height)
Get the dimensions/location of the viewport within the display input for a surface seen by an eye of ...
Definition: DisplayC.cpp:280
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetDisplayDimensions(OSVR_DisplayConfig disp, OSVR_DisplayInputCount displayInputIndex, OSVR_DisplayDimension *width, OSVR_DisplayDimension *height)
Retrieve the pixel dimensions of a given display input for a display config.
Definition: DisplayC.cpp:153
uint16_t OSVR_MatrixConventions
Type for passing matrix convention flags.
Definition: MatrixConventionsC.h:54
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyeSurfaceDisplayInputIndex(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount surface, OSVR_DisplayInputCount *displayInput)
Get the index of the display input for a surface seen by an eye of a viewer in a display config...
Definition: DisplayC.cpp:303
Header with integer types for Viewer, Eye, and Surface counts/indices, as well as viewport informatio...
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientDoesViewerEyeSurfaceWantDistortion(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount surface, OSVR_CBool *distortionRequested)
Determines if a surface seen by an eye of a viewer in a display config requests some distortion to be...
Definition: DisplayC.cpp:385
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyeSurfaceRadialDistortion(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount surface, OSVR_RadialDistortionParameters *params)
Returns the radial distortion parameters, if known/requested, for a surface seen by an eye of a viewe...
Definition: DisplayC.cpp:413
uint32_t OSVR_ViewerCount
The integer type specifying a number of viewers in a system.
Definition: RenderingTypesC.h:72
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetNumEyesForViewer(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount *eyes)
Each viewer in a display config can have one or more "eyes" which have a substantially similar pose: ...
Definition: DisplayC.cpp:194
Header providing basic C macros for defining API headers.
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionMatrixf(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount surface, float near, float far, OSVR_MatrixConventions flags, float *matrix)
Get the projection matrix for a surface seen by an eye of a viewer in a display config.
Definition: DisplayC.cpp:358
Definition: ClientContext.h:50
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientFreeDisplay(OSVR_DisplayConfig disp)
Frees a display configuration object.
Definition: DisplayC.cpp:124
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyePose(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_Pose3 *pose)
Get the "viewpoint" for the given eye of a viewer in a display config.
Definition: DisplayC.cpp:204
uint8_t OSVR_EyeCount
The integer type specifying the number of eyes (viewpoints) of a viewer.
Definition: RenderingTypesC.h:92
uint8_t OSVR_DisplayInputCount
A count or index for a display input in a display config.
Definition: RenderingTypesC.h:51
A structure defining a 3D (6DOF) rigid body pose: translation and rotation.
Definition: Pose3C.h:54
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetNumSurfacesForViewerEye(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount *surfaces)
Each eye of each viewer in a display config has one or more surfaces (aka "screens") on which content...
Definition: DisplayC.cpp:269
int32_t OSVR_ViewportDimension
The integer type used in specification of size or location of a viewport.
Definition: RenderingTypesC.h:113
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyeViewMatrixd(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_MatrixConventions flags, double *mat)
Get the view matrix (inverse of pose) for the given eye of a viewer in a display config - matrix of d...
Definition: DisplayC.cpp:256
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerPose(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_Pose3 *pose)
Get the pose of a viewer in a display config.
Definition: DisplayC.cpp:174
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetViewerEyeSurfaceRadialDistortionPriority(OSVR_DisplayConfig disp, OSVR_ViewerCount viewer, OSVR_EyeCount eye, OSVR_SurfaceCount surface, OSVR_DistortionPriority *priority)
Returns the priority/availability of radial distortion parameters for a surface seen by an eye of a v...
Definition: DisplayC.cpp:400
struct OSVR_DisplayConfigObject * OSVR_DisplayConfig
Opaque type of a display configuration.
Definition: DisplayC.h:57
OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientGetNumViewers(OSVR_DisplayConfig disp, OSVR_ViewerCount *viewers)
A display config can have one (or theoretically more) viewers: retrieve the viewer count...
Definition: DisplayC.cpp:166
int32_t OSVR_DisplayDimension
The integer type used in specification of size or location of a display input, in pixels...
Definition: RenderingTypesC.h:56