![]() |
SDK DOCUMENTATION
|
Go to the source code of this file.
Data Structures | |
struct | varjo_Matrix |
Double precision 4x4 matrix. More... | |
struct | varjo_Ray |
Ray is a vector starting from an origin. More... | |
struct | varjo_Vector2Df |
32bit floating point 2D vector. More... | |
struct | varjo_Vector3D |
struct | varjo_Mesh2Df |
2D triangle list mesh. More... | |
struct | varjo_AlignedView |
Axis aligned tangents from a projection matrix. More... | |
struct | varjo_ViewInfo |
View information for a frame. More... | |
struct | varjo_FrameInfo |
Per-frame information. More... | |
struct | varjo_ViewDescription |
View description. More... | |
struct | varjo_Gaze |
Gaze tracker vectors and tracking state. More... | |
struct | varjo_SwapChainConfig |
Config for swap chain texture size and count. More... | |
struct | varjo_SwapChainLimits |
Minimum and maximum limits for swap chain texture count and size. More... | |
struct | varjo_Viewport |
Viewport rectangle that defines viewport area. More... | |
struct | varjo_GraphicsInfo |
General graphics information. More... | |
struct | varjo_Texture |
API-agnostic texture handle. More... | |
struct | varjo_SubmitInfo |
Information required to submit a frame to the Compositor. More... | |
Typedefs | |
typedef int64_t | varjo_Error |
typedef int32_t | varjo_Bool |
typedef int64_t | varjo_Nanoseconds |
Time in nanoseconds. More... | |
typedef int64_t | varjo_GazeStatus |
Gaze statuses. More... | |
typedef int64_t | varjo_GazeEyeStatus |
typedef int64_t | varjo_RotationReset |
Rotation reset types. More... | |
typedef int64_t | varjo_PropertyKey |
System status properties. More... | |
typedef int64_t | varjo_PoseType |
typedef int64_t | varjo_DisplayType |
typedef int64_t | varjo_Eye |
typedef int64_t | varjo_WindingOrder |
typedef int64_t | varjo_TextureFormat |
typedef int64_t | varjo_RenderAPI |
Render API flags. More... | |
typedef int64_t | varjo_EulerOrder |
typedef int64_t | varjo_RotationDirection |
typedef int64_t | varjo_Handedness |
typedef int64_t | varjo_SubmitFlags |
Submit flags. More... | |
struct varjo_Matrix |
Double precision 4x4 matrix.
The matrix usage convention is that they are stored in column-major order and transforms are stacked before column-vector points when multiplying. That is, a pure translation matrix will have the position offset in elements 12..14.
Unless otherwise specified, the coordinate system is right-handed: X goes right, Y goes up and negative Z goes forward.
Data Fields | ||
---|---|---|
double | value[16] |
struct varjo_Ray |
struct varjo_Vector2Df |
struct varjo_Vector3D |
struct varjo_Mesh2Df |
2D triangle list mesh.
Data Fields | ||
---|---|---|
int32_t | vertexCount | Number of vertices. |
struct varjo_Vector2Df * | vertices | Vertex data. |
struct varjo_AlignedView |
Axis aligned tangents from a projection matrix.
The tangents are between the edge planes and projection centre and defined so that if the projection is centered, all of them are positive.
struct varjo_ViewInfo |
View information for a frame.
Data Fields | ||
---|---|---|
varjo_Bool | enabled | Whether this view should be rendered during current frame. |
int32_t | preferredHeight | Preferred height of the viewport. |
int32_t | preferredWidth | Preferred width of the viewport. |
double | projectionMatrix[16] | The projection matrix. See varjo_Matrix for conventions. |
int32_t | reserved | Unused. |
double | viewMatrix[16] | The view matrix, world-to-eye. See varjo_Matrix for conventions. |
struct varjo_FrameInfo |
Per-frame information.
Data Fields | ||
---|---|---|
varjo_Nanoseconds | displayTime | When the frame is estimated to be displayed. |
int64_t | frameNumber | Current frame number. |
struct varjo_ViewInfo * | views | Views for the frame. Array size is varjo_GraphicsInfo::viewCount. |
struct varjo_ViewDescription |
View description.
Information about the associated eye, display and resolution.
Data Fields | ||
---|---|---|
varjo_DisplayType | display | Which display the view is for. |
varjo_Eye | eye | Which eye the view is for. |
int32_t | height | Default view height in pixels. |
int32_t | width | Default view width in pixels. |
struct varjo_Gaze |
Gaze tracker vectors and tracking state.
Data Fields | ||
---|---|---|
varjo_Nanoseconds | captureTime | Varjo time when this data was captured, see varjo_GetCurrentTime() |
double | focusDistance | Estimated gaze direction focus point distance. |
int64_t | frameNumber | Frame number, increases monotonically. |
struct varjo_Ray | gaze | Normalized gaze direction ray. |
struct varjo_Ray | leftEye | Left eye gaze ray. |
double | leftPupilSize | Normalized [0..1] left eye pupil size. |
varjo_GazeEyeStatus | leftStatus | Status of left eye data. |
struct varjo_Ray | rightEye | Right eye gaze ray. |
double | rightPupilSize | Normalized [0..1] right eye pupil size. |
varjo_GazeEyeStatus | rightStatus | Status of right eye data. |
double | stability | Focus point stability. |
varjo_GazeStatus | status | Tracking main status. |
struct varjo_SwapChainConfig |
struct varjo_SwapChainLimits |
Minimum and maximum limits for swap chain texture count and size.
struct varjo_Viewport |
struct varjo_GraphicsInfo |
General graphics information.
Data Fields | ||
---|---|---|
int32_t | swapChainTextureCount | Number of swap chain textures. |
int32_t | swapChainTextureHeight | Swap chain texture height. |
struct varjo_Texture * | swapChainTextures | Swap chain textures. |
int32_t | swapChainTextureWidth | Swap chain texture width. |
int32_t | viewCount | Number of views. |
struct varjo_Texture |
API-agnostic texture handle.
Use varjo_FromD3D11Texture, varjo_ToD3D11Texture varjo_FromGLTexture and varjo_ToGLTexture to convert textures between Varjo and graphics APIs.
Data Fields | ||
---|---|---|
int64_t | reserved[4] |
struct varjo_SubmitInfo |
Information required to submit a frame to the Compositor.
Data Fields | ||
---|---|---|
varjo_SubmitFlags | flags | Additional submit flags. |
int64_t | frameNumber | Current frame number. |
struct varjo_Texture * | textures | Textures to submit. |
struct varjo_Viewport * | viewports | Viewports to submit. |
typedef int32_t varjo_Bool |
typedef int64_t varjo_DisplayType |
typedef int64_t varjo_Error |
typedef int64_t varjo_EulerOrder |
typedef int64_t varjo_Eye |
typedef int64_t varjo_GazeEyeStatus |
typedef int64_t varjo_GazeStatus |
Gaze statuses.
typedef int64_t varjo_Handedness |
typedef int64_t varjo_Nanoseconds |
Time in nanoseconds.
Absolute times are relative to an epoch which is constant during execution of the program.
typedef int64_t varjo_PoseType |
typedef int64_t varjo_PropertyKey |
System status properties.
typedef int64_t varjo_RenderAPI |
Render API flags.
typedef int64_t varjo_RotationDirection |
typedef int64_t varjo_RotationReset |
Rotation reset types.
typedef int64_t varjo_SubmitFlags |
Submit flags.
typedef int64_t varjo_TextureFormat |
typedef int64_t varjo_WindingOrder |
|
static |
|
static |
Context display.
|
static |
Focus display.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Left eye.
|
static |
Right eye.
|
static |
|
static |
Eye is tracked but quality compromised (e.g. headset has moved after calibration).
|
static |
Eye is not tracked. (e.g. not visible or is shut).
|
static |
Eye is tracked.
|
static |
Eye is visible but not reliably tracked (e.g. saccade or blink).
|
static |
User is wearing the device but gaze tracking is in middle of adjustment.
|
static |
Data is not available, user is not wearing the device or eyes can not be found.
|
static |
Data is valid.
|
static |
|
static |
|
static |
|
static |
Pose for the head (in the middle of the eyes).
|
static |
Pose for the left eye.
|
static |
Pose for the right eye.
|
static |
boolean. Is the HMD gaze tracker allowed.
|
static |
boolean. Is the HMD gaze tracker calibrated.
|
static |
boolean. Is system currently calibrating the HMD gaze tracker.
|
static |
float [0.0-1.0]. Quality of the gaze calibration.
|
static |
float. IPD distance estimate in millimeters.
|
static |
Invalid property key.
|
static |
Direct3D11 rendering API.
|
static |
OpenGL rendering API.
|
static |
|
static |
|
static |
All rotation axes are reset.
|
static |
Rotation is not reset.
|
static |
Yaw rotation (around up Y axis) is reset.
|
static |
Makes varjo_EndFrame return immediately unless there is already a submittion in progress.
|
static |
Invert alpha channel before blending.
|
static |
Frame is opaque and doesn't need blending (e.g. with VST).
|
static |
sRgb 8-bit BGRA format
32-bit floating point depth format
|
static |
sRgb 8-bit RGBA format (deprecated due to a typo.)
|
static |
sRgb 8-bit RGBA format
|
static |
|
static |
Clockwise triangle winding.
|
static |
Counter-clockwise triangle winding.