OPENXR Scol plugin
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sOpenXr Class Reference

#include <sOpenXR.h>

Public Member Functions

 sOpenXr (RenderSystem rsys=XR_OPENGL_RENDERER, float scaleRatio=1.0f)
 
 ~sOpenXr ()
 
XrInstance GetXrInstance ()
 
XrSession GetXrSession ()
 
bool Connect ()
 
void Disconnect ()
 
bool IsConnected ()
 
bool IsVisible ()
 
void SetScaleRatio (float ratio)
 
bool GetHmdOrientation (Quaternion &quat)
 
bool GetHmdPosition (Vector3 &vec)
 
XrTime GetPredictedDisplayTime ()
 
void SetExtensions (int extensions)
 
int GetExtensions ()
 
std::string GetHmdName ()
 
bool GetProjectionMatrix (VrEye eye, float nearclip, float farclip, Matrix4 &mat)
 
bool GetStereoTextureSize (unsigned int &w, unsigned int &h)
 
float GetStereoConfigFovY ()
 
float GetStereoConfigIPD ()
 
bool Update ()
 
void UpdateTextures (SCOL_PTR_TYPE leftTexture, SCOL_PTR_TYPE rightTexture)
 
void SetState (bool state)
 
bool GetControllerVisibility (int id)
 
Vector3 GetControllerPosition (int id)
 
Quaternion GetControllerOrientation (int id)
 
Vector3 GetControllerVelocity (int id)
 
Vector3 GetControllerAngularVelocity (int id)
 
void SetControllerVibration (int id, float value)
 
std::vector< bool > GetControllerButtonsState (int id)
 
std::vector< bool > GetControllerTouchesState (int id)
 
std::vector< float > GetControllerAnalogState (int id)
 
std::array< Position, MAX_HAND_JOINTS > GetControllerBones (int id, bool &ret)
 
int GetControllerType (int id)
 
bool IsPassthroughSupported ()
 
bool SetPassthroughState (bool state)
 
RenderSystem GetRenderer ()
 
void SetRenderer (RenderSystem renderer)
 
void SetAppName (std::string name)
 
bool SetSceneBlendMode (XrEnvironmentBlendMode mode)
 

Static Public Member Functions

static sOpenXrCreateInstance (RenderSystem rsys=XR_OPENGL_RENDERER, float scale=1.0f)
 
static sOpenXrGetInstance ()
 
static void Kill ()
 

Protected Member Functions

void printSupportedViewConfigs ()
 
void printViewconfigViewInfo ()
 
void printReferenceSpaces ()
 

Protected Attributes

bool mConnected
 

Detailed Description

sOpenXr class

Definition at line 165 of file sOpenXR.h.

Constructor & Destructor Documentation

◆ sOpenXr()

sOpenXr::sOpenXr ( RenderSystem  rsys = XR_OPENGL_RENDERER,
float  scaleRatio = 1.0f 
)

Ctor.

Definition at line 106 of file sOpenXR.cpp.

◆ ~sOpenXr()

sOpenXr::~sOpenXr ( )

Dtor

Definition at line 193 of file sOpenXR.cpp.

Member Function Documentation

◆ Connect()

bool sOpenXr::Connect ( )

Definition at line 869 of file sOpenXR.cpp.

◆ CreateInstance()

sOpenXr * sOpenXr::CreateInstance ( RenderSystem  rsys = XR_OPENGL_RENDERER,
float  scale = 1.0f 
)
static

Definition at line 808 of file sOpenXR.cpp.

◆ Disconnect()

void sOpenXr::Disconnect ( )

Definition at line 890 of file sOpenXR.cpp.

◆ GetControllerAnalogState()

std::vector< float > sOpenXr::GetControllerAnalogState ( int  id)

Definition at line 2410 of file sOpenXR.cpp.

◆ GetControllerAngularVelocity()

Vector3 sOpenXr::GetControllerAngularVelocity ( int  id)

Definition at line 2385 of file sOpenXR.cpp.

◆ GetControllerBones()

std::array< Position, MAX_HAND_JOINTS > sOpenXr::GetControllerBones ( int  id,
bool &  ret 
)

Definition at line 2436 of file sOpenXR.cpp.

◆ GetControllerButtonsState()

std::vector< bool > sOpenXr::GetControllerButtonsState ( int  id)

Definition at line 2390 of file sOpenXR.cpp.

◆ GetControllerOrientation()

Quaternion sOpenXr::GetControllerOrientation ( int  id)

Definition at line 2375 of file sOpenXR.cpp.

◆ GetControllerPosition()

Vector3 sOpenXr::GetControllerPosition ( int  id)

Definition at line 2370 of file sOpenXR.cpp.

◆ GetControllerTouchesState()

std::vector< bool > sOpenXr::GetControllerTouchesState ( int  id)

Definition at line 2400 of file sOpenXR.cpp.

◆ GetControllerType()

int sOpenXr::GetControllerType ( int  id)

Definition at line 2445 of file sOpenXR.cpp.

◆ GetControllerVelocity()

Vector3 sOpenXr::GetControllerVelocity ( int  id)

Definition at line 2380 of file sOpenXR.cpp.

◆ GetControllerVisibility()

bool sOpenXr::GetControllerVisibility ( int  id)

Definition at line 2365 of file sOpenXR.cpp.

◆ GetExtensions()

int sOpenXr::GetExtensions ( )

Definition at line 268 of file sOpenXR.cpp.

◆ GetHmdName()

std::string sOpenXr::GetHmdName ( )

Definition at line 882 of file sOpenXR.cpp.

◆ GetHmdOrientation()

bool sOpenXr::GetHmdOrientation ( Quaternion quat)

Definition at line 919 of file sOpenXR.cpp.

◆ GetHmdPosition()

bool sOpenXr::GetHmdPosition ( Vector3 vec)

Definition at line 928 of file sOpenXR.cpp.

◆ GetInstance()

sOpenXr * sOpenXr::GetInstance ( )
static

Definition at line 823 of file sOpenXR.cpp.

◆ GetPredictedDisplayTime()

XrTime sOpenXr::GetPredictedDisplayTime ( )

Definition at line 978 of file sOpenXR.cpp.

◆ GetProjectionMatrix()

bool sOpenXr::GetProjectionMatrix ( VrEye  eye,
float  nearclip,
float  farclip,
Matrix4 mat 
)

Definition at line 937 of file sOpenXR.cpp.

◆ GetRenderer()

RenderSystem sOpenXr::GetRenderer ( )

Definition at line 836 of file sOpenXR.cpp.

◆ GetStereoConfigFovY()

float sOpenXr::GetStereoConfigFovY ( )

Definition at line 960 of file sOpenXR.cpp.

◆ GetStereoConfigIPD()

float sOpenXr::GetStereoConfigIPD ( )

Definition at line 973 of file sOpenXR.cpp.

◆ GetStereoTextureSize()

bool sOpenXr::GetStereoTextureSize ( unsigned int &  w,
unsigned int &  h 
)

Definition at line 948 of file sOpenXR.cpp.

◆ GetXrInstance()

XrInstance sOpenXr::GetXrInstance ( )

Definition at line 854 of file sOpenXR.cpp.

◆ GetXrSession()

XrSession sOpenXr::GetXrSession ( )

Definition at line 859 of file sOpenXR.cpp.

◆ IsConnected()

bool sOpenXr::IsConnected ( )

Definition at line 864 of file sOpenXR.cpp.

◆ IsPassthroughSupported()

bool sOpenXr::IsPassthroughSupported ( )

Definition at line 2453 of file sOpenXR.cpp.

◆ IsVisible()

bool sOpenXr::IsVisible ( )

Definition at line 914 of file sOpenXR.cpp.

◆ Kill()

void sOpenXr::Kill ( )
static

Definition at line 831 of file sOpenXR.cpp.

◆ printReferenceSpaces()

void sOpenXr::printReferenceSpaces ( )
protected

Definition at line 776 of file sOpenXR.cpp.

◆ printSupportedViewConfigs()

void sOpenXr::printSupportedViewConfigs ( )
protected

Definition at line 730 of file sOpenXR.cpp.

◆ printViewconfigViewInfo()

void sOpenXr::printViewconfigViewInfo ( )
protected

Definition at line 760 of file sOpenXR.cpp.

◆ SetAppName()

void sOpenXr::SetAppName ( std::string  name)

Definition at line 236 of file sOpenXR.cpp.

◆ SetControllerVibration()

void sOpenXr::SetControllerVibration ( int  id,
float  value 
)

Definition at line 2420 of file sOpenXR.cpp.

◆ SetExtensions()

void sOpenXr::SetExtensions ( int  extensions)

Definition at line 221 of file sOpenXR.cpp.

◆ SetPassthroughState()

bool sOpenXr::SetPassthroughState ( bool  state)

Definition at line 2520 of file sOpenXR.cpp.

◆ SetRenderer()

void sOpenXr::SetRenderer ( RenderSystem  renderer)

Definition at line 203 of file sOpenXR.cpp.

◆ SetScaleRatio()

void sOpenXr::SetScaleRatio ( float  ratio)

Definition at line 841 of file sOpenXR.cpp.

◆ SetSceneBlendMode()

bool sOpenXr::SetSceneBlendMode ( XrEnvironmentBlendMode  mode)

Definition at line 246 of file sOpenXR.cpp.

◆ SetState()

void sOpenXr::SetState ( bool  state)

Definition at line 900 of file sOpenXR.cpp.

◆ Update()

bool sOpenXr::Update ( )

Definition at line 2177 of file sOpenXR.cpp.

◆ UpdateTextures()

void sOpenXr::UpdateTextures ( SCOL_PTR_TYPE  leftTexture,
SCOL_PTR_TYPE  rightTexture 
)

Definition at line 2262 of file sOpenXR.cpp.

Member Data Documentation

◆ available

bool sOpenXr::available

Definition at line 213 of file sOpenXR.h.

◆ bones

std::array<std::array<Position, MAX_HAND_JOINTS>, 2> sOpenXr::bones

Definition at line 207 of file sOpenXR.h.

◆ gestures

bool sOpenXr::gestures

Definition at line 202 of file sOpenXR.h.

◆ mConnected

bool sOpenXr::mConnected
protected

Definition at line 169 of file sOpenXR.h.

◆ passthroughFeature [1/2]

XrPassthroughFB sOpenXr::passthroughFeature

Definition at line 214 of file sOpenXR.h.

◆ passthroughFeature [2/2]

XrPassthroughHTC sOpenXr::passthroughFeature

Definition at line 230 of file sOpenXR.h.

◆ passthroughLayer [1/2]

XrPassthroughLayerFB sOpenXr::passthroughLayer

Definition at line 215 of file sOpenXR.h.

◆ passthroughLayer [2/2]

XrCompositionLayerPassthroughHTC sOpenXr::passthroughLayer

Definition at line 231 of file sOpenXR.h.

◆ pfnLocateHandJointsEXT

PFN_xrLocateHandJointsEXT sOpenXr::pfnLocateHandJointsEXT

Definition at line 205 of file sOpenXR.h.

◆ pfnXrCreatePassthroughFBX

PFN_xrCreatePassthroughFB sOpenXr::pfnXrCreatePassthroughFBX

Definition at line 216 of file sOpenXR.h.

◆ pfnXrCreatePassthroughHTC

PFN_xrCreatePassthroughHTC sOpenXr::pfnXrCreatePassthroughHTC

Definition at line 232 of file sOpenXR.h.

◆ pfnXrCreatePassthroughLayerFBX

PFN_xrCreatePassthroughLayerFB sOpenXr::pfnXrCreatePassthroughLayerFBX

Definition at line 218 of file sOpenXR.h.

◆ pfnXrDestroyPassthroughFBX

PFN_xrDestroyPassthroughFB sOpenXr::pfnXrDestroyPassthroughFBX

Definition at line 217 of file sOpenXR.h.

◆ pfnXrDestroyPassthroughHTC

PFN_xrDestroyPassthroughHTC sOpenXr::pfnXrDestroyPassthroughHTC

Definition at line 233 of file sOpenXR.h.

◆ pfnXrDestroyPassthroughLayerFBX

PFN_xrDestroyPassthroughLayerFB sOpenXr::pfnXrDestroyPassthroughLayerFBX

Definition at line 223 of file sOpenXR.h.

◆ pfnXrPassthroughLayerPauseFBX

PFN_xrPassthroughLayerResumeFB sOpenXr::pfnXrPassthroughLayerPauseFBX

Definition at line 222 of file sOpenXR.h.

◆ pfnXrPassthroughLayerResumeFBX

PFN_xrPassthroughLayerPauseFB sOpenXr::pfnXrPassthroughLayerResumeFBX

Definition at line 221 of file sOpenXR.h.

◆ pfnXrPassthroughLayerSetStyleFB

PFN_xrPassthroughLayerSetStyleFB sOpenXr::pfnXrPassthroughLayerSetStyleFB

Definition at line 224 of file sOpenXR.h.

◆ pfnXrPassthroughPauseFBX

PFN_xrPassthroughPauseFB sOpenXr::pfnXrPassthroughPauseFBX

Definition at line 220 of file sOpenXR.h.

◆ pfnXrPassthroughStartFBX

PFN_xrPassthroughStartFB sOpenXr::pfnXrPassthroughStartFBX

Definition at line 219 of file sOpenXR.h.

◆ supported

bool sOpenXr::supported

Definition at line 201 of file sOpenXR.h.

◆ system_supported

bool sOpenXr::system_supported

Definition at line 204 of file sOpenXR.h.

◆ trackers

std::array<XrHandTrackerEXT, 2> sOpenXr::trackers

Definition at line 206 of file sOpenXR.h.


The documentation for this class was generated from the following files: