|
Pico Native XR SDK
|
#include "PxrTypes.h"Go to the source code of this file.
Functions | |
| int | Pxr_SetGraphicOption (PxrGraphicOption graphic) |
| Sets the type of graphics API. More... | |
| int | Pxr_SetPlatformOption (PxrPlatformOption platform) |
| Specifies the build platform. More... | |
| int | Pxr_SetInitializeData (PxrInitParamData *params) |
| Sets the data required for initializing SDK. Note: This API needs to be called before all the other init-related APIs. More... | |
| int | Pxr_Initialize () |
| Initializes the SDK. More... | |
| bool | Pxr_IsInitialized () |
| Gets whether the SDK is initialized. More... | |
| int | Pxr_Shutdown () |
| Exits and releases resources. More... | |
| int | Pxr_GetDeviceExtensionsVk (const char **extensionNamesArray, uint32_t *extensionCount) |
| Gets the Vulkan extensions supported by the device. More... | |
| int | Pxr_GetInstanceExtensionsVk (const char **extensionNamesArray, uint32_t *extensionCount) |
| Gets the Vulkan extensions supported by the instance. More... | |
| int | Pxr_GetDeviceExtensionsXRPlatform (char **namesString, uint32_t *extensionCount, uint32_t namesCapacityIn) |
| int | Pxr_GetInstanceExtensionsXRPlatform (char **namesString, uint32_t *extensionCount, uint32_t namesCapacityIn) |
| int | Pxr_CreateVulkanSystem (const PxrVulkanBinding *vulkanBinding) |
| Inputs Vulkan binding parameters to create a Vulkan session. More... | |
| bool | Pxr_GetFeatureSupported (PxrFeatureType feature) |
| int | Pxr_GetConfigViewsInfos (uint32_t *maxImageRectWidth, uint32_t *maxImageRectHeight, uint32_t *recommendedImageRectWidth, uint32_t *recommendedImageRectHeight) |
| Gets the maximum and recommended width and height (in pixels) of the Render Buffer. More... | |
| int | Pxr_CreateLayer (const PxrLayerParam *layerParam) |
| Creates a rendering layer. More... | |
| int | Pxr_GetLayerImageCount (int layerId, PxrEyeType eye, uint32_t *imageCount) |
| Gets the number of images corresponding to a specified layer. More... | |
| int | Pxr_GetLayerImage (int layerId, PxrEyeType eye, int imageIndex, uint64_t *image) |
| Gets the handle of a specified image used in a specified layer. More... | |
| int | Pxr_GetLayerNextImageIndex (int layerId, int *imageIndex) |
| Gets the index of the handle of the image to be rendered in the next frame of the layer. More... | |
| int | Pxr_GetLayerAndroidSurface (int layerId, PxrEyeType eye, jobject *androidSurface) |
| Gets the Android surface created when the layer is created. Note: This API is available only if the layerFlags parameters contains PXR_LAYER_FLAG_ANDROID_SURFACE when Pxr_CreateLayer is called. It can be used for video media decoding. More... | |
| int | Pxr_GetLayerFoveationImage (int layerId, PxrEyeType eye, uint64_t *foveationImage, uint32_t *width, uint32_t *height) |
| int | Pxr_DestroyLayer (int layerId) |
| Destroies the specified layer. More... | |
| bool | Pxr_IsRunning () |
| Checks whether the XR mode has been entered. More... | |
| int | Pxr_BeginXr () |
| Enters the XR mode. More... | |
| int | Pxr_EndXr () |
| Exits the XR mode. More... | |
| int | Pxr_GetPredictedDisplayTime (double *predictedDisplayTimeMs) |
| Gets the predicted display time of the current rendered frame. More... | |
| int | Pxr_GetPredictedMainSensorState (double predictTimeMs, PxrSensorState *sensorState, int *sensorFrameIndex) |
| Gets the predicted position and pose of the head. More... | |
| int | Pxr_GetPredictedMainSensorState2 (double predictTimeMs, PxrSensorState2 *sensorState, int *sensorFrameIndex) |
| int | Pxr_GetPredictedMainSensorStateWithEyePose (double predictTimeMs, PxrSensorState *sensorState, int *sensorFrameIndex, int eyeCount, PxrPosef *eyePoses) |
| Gets the predicted position and pose data of the head, and gets the corresponding eye pose as well. More... | |
| int | Pxr_ResetSensor (PxrResetSensorOption option) |
| Resets the pose. More... | |
| int | Pxr_BeginFrame () |
| Starts rendering each frame. More... | |
| int | Pxr_SubmitLayer (const PxrLayerHeader *layer) |
| Commits the current rendering layer. More... | |
| int | Pxr_EndFrame () |
| Ends the current frame and submits all layers submitted by the rendering layer to the compositor layer. More... | |
| bool | Pxr_PollEvent (int eventCountMAX, int *eventDataCountOutput, PxrEventDataBuffer **eventDataPtr) |
| Gets the latest event. More... | |
| void | Pxr_LogPrint (int priority, const char *tag, const char *fmt,...) |
| int | Pxr_GetFov (PxrEyeType eye, float *fovLeft, float *fovRight, float *fovUp, float *fovDown) |
| Gets the FOV of the current device. More... | |
| int | Pxr_GetFrustum (PxrEyeType eye, float *left, float *right, float *top, float *bottom, float *near, float *far) |
| int | Pxr_SetFrustum (PxrEyeType eye, float left, float right, float top, float bottom, float near, float far) |
| int | Pxr_SetPerformanceLevels (PxrPerfSettings which, int level) |
| int | Pxr_GetPerformanceLevels (PxrPerfSettings which, int *level) |
| int | Pxr_SetColorSpace (PxrColorSpace colorSpace) |
| Sets the color space. More... | |
| PxrFoveationLevel | Pxr_GetFoveationLevel () |
| int | Pxr_SetFoveationLevel (PxrFoveationLevel level) |
| Sets the foveated rendering level. More... | |
| int | Pxr_SetFoveationParams (PxrFoveationParams params) |
| int | Pxr_SetTrackingMode (PxrTrackingModeFlags trackingMode) |
| Sets the tracking mode. More... | |
| int | Pxr_GetTrackingMode (PxrTrackingModeFlags *trackingMode) |
| Gets the value of tracking mode. More... | |
| int | Pxr_GetEyeTrackingData (PxrEyeTrackingData *eyeTrackingData) |
| Gets the eye tracking data. More... | |
| int | Pxr_SetTrackingOrigin (PxrTrackingOrigin trackingOrigin) |
| Sets tracking origin mode. More... | |
| int | Pxr_GetTrackingOrigin (PxrTrackingOrigin *trackingOrigin) |
| Gets tracking origin settings. More... | |
| float | Pxr_GetIPD () |
| Gets the IPD (interpupillary distance). More... | |
| bool | Pxr_GetAppHasFocus () |
| int | Pxr_GetConfigInt (PxrConfigType configIndex, int *configData) |
| Gets the value of the specified configuration item. More... | |
| int | Pxr_GetConfigFloat (PxrConfigType configIndex, float *configData) |
| Gets the value of the specified configuration item. More... | |
| int | Pxr_SetConfigInt (PxrConfigType configSetIndex, int configSetData) |
| Sets the value of the specified configuration item. More... | |
| int | Pxr_SetConfigString (PxrConfigType configIndex, const char *configSetData) |
| int | Pxr_SetConfigUint64 (PxrConfigType configIndex, uint64_t configSetData) |
| void | Pxr_RegisteKeyEventCallback (void *func) |
| bool | Pxr_GetIntSysProc (char *command, int *rlt) |
| int | Pxr_SetGuardianSystemDisable (bool disable) |
| int | Pxr_ResumeGuardianSystemForSTS () |
| int | Pxr_PauseGuardianSystemForSTS () |
| int | Pxr_ShutdownSdkGuardianSystem () |
| int | Pxr_GetCameraDataExt (uint8_t **data) |
| int | Pxr_StartSdkBoundary () |
| int | Pxr_StartCameraPreview (int value) |
| int | Pxr_GetRoomModeState () |
| int | Pxr_GetDialogState () |
| Gets the reason why the boundary dialog box appears. More... | |
| int | Pxr_DisableBoundary () |
| int | Pxr_SetMonoMode (bool mono) |
| bool | Pxr_GetBoundaryConfigured () |
| Gets whether the boundary has been configured. More... | |
| bool | Pxr_GetBoundaryEnabled () |
| Gets whether the boundary system has been enabled. More... | |
| int | Pxr_SetBoundaryVisible (bool value) |
| Sets the boundary as visible or invisible. More... | |
| int | Pxr_SetSeeThroughBackground (bool value) |
| bool | Pxr_GetBoundaryVisible () |
| Gets whether the boundary is visible. More... | |
| int | Pxr_SetSeeThroughVisible (bool value) |
| int | Pxr_SetControllerPoseToBoundary (const PxrPosef *pose, PxrControllerHandness hand, bool valid) |
| int | Pxr_TestNodeIsInBoundary (PxrBoundaryTestNode node, bool isPlayArea, PxrBoundaryTriggerInfo *info) |
| Checks whether a tracked node will trigger the boundary. More... | |
| int | Pxr_TestPointIsInBoundary (const PxrVector3f *point, bool isPlayArea, PxrBoundaryTriggerInfo *info) |
| Checks whether a tracked point in the coordinate system will trigger the boundary. More... | |
| int | Pxr_GetBoundaryGeometry (bool isPlayArea, uint32_t pointsCountInput, uint32_t *pointsCountOutput, PxrVector3f *outPoints) |
| Gets the collection of boundary points. More... | |
| int | Pxr_GetBoundaryGeometry2 (bool isPlayArea, float **outPointsFloat, uint32_t *pointsCountOutput) |
| Gets the collection of boundary points. More... | |
| int | Pxr_GetBoundaryDimensions (bool isPlayArea, PxrVector3f *dimension) |
| int | Pxr_SetSeeThroughImageExtent (uint32_t width, uint32_t height) |
| int | Pxr_GetSeeThroughData (PxrSeeThoughData *data) |
| Gets the SeeThrough camera image. More... | |
| bool | Pxr_EnableMultiview (bool enable) |
| Enables/disables Multiview. More... | |
| int | Pxr_GetMrcPose (PxrPosef *pose) |
| int | Pxr_SetMrcPose (const PxrPosef *pose) |
| bool | Pxr_GetMrcStatus () |
| int | Pxr_SetSensorLostCustomMode (bool value) |
| int | Pxr_SetSensorLostCMST (bool value) |
| int | Pxr_GetDisplayRefreshRatesAvailable (uint32_t *count, float **rateArray) |
| Gets the available display refresh rates. More... | |
| int | Pxr_SetDisplayRefreshRate (float refreshRate) |
| Sets the display refresh rate. More... | |
| int | Pxr_GetDisplayRefreshRate (float *refreshRate) |
| Gets the current display refresh rate. More... | |
| bool | Pxr_SetExtraLatencyMode (int mode) |
| int Pxr_BeginFrame | ( | ) |
Starts rendering each frame.
0 indicates success, and other values indicate failure.
| int Pxr_BeginXr | ( | ) |
Enters the XR mode.
0 indicates success, and other values indicate failure.
| int Pxr_CreateLayer | ( | const PxrLayerParam * | layerParam | ) |
Creates a rendering layer.
| layerParam | A structure that contains the following parameters of the rendering layer to be created:
|
0 indicates success, and other values indicate failure.| int Pxr_CreateVulkanSystem | ( | const PxrVulkanBinding * | vulkanBinding | ) |
Inputs Vulkan binding parameters to create a Vulkan session.
| vulkanBinding | A structure containing the following:
|
0 indicates success, and other values indicate failure.| int Pxr_DestroyLayer | ( | int | layerId | ) |
Destroies the specified layer.
| layerId | Layger ID. |
0 indicates success, and other values indicate failure.| int Pxr_DisableBoundary | ( | ) |
| bool Pxr_EnableMultiview | ( | bool | enable | ) |
Enables/disables Multiview.
| enable | Whether to enable/disable Multiview:
|
0 indicates success, and other values indicate failure.| int Pxr_EndFrame | ( | ) |
Ends the current frame and submits all layers submitted by the rendering layer to the compositor layer.
0 indicates success, and other values indicate failure.
| int Pxr_EndXr | ( | ) |
Exits the XR mode.
0 indicates success, and other values indicate failure.
| bool Pxr_GetAppHasFocus | ( | ) |
| bool Pxr_GetBoundaryConfigured | ( | ) |
Gets whether the boundary has been configured.
true: configured false: not configured | int Pxr_GetBoundaryDimensions | ( | bool | isPlayArea, |
| PxrVector3f * | dimension | ||
| ) |
| bool Pxr_GetBoundaryEnabled | ( | ) |
Gets whether the boundary system has been enabled.
true: enabled false: not enabled | int Pxr_GetBoundaryGeometry | ( | bool | isPlayArea, |
| uint32_t | pointsCountInput, | ||
| uint32_t * | pointsCountOutput, | ||
| PxrVector3f * | outPoints | ||
| ) |
Gets the collection of boundary points.
| isPlayArea | Whether it is an internal rectangular area:
|
| pointsCountInput | The number of points expected to be acquired. When the value is set to 0, it indicates that the indicator function is called to acquire the number of points that can be acquired. |
| pointsCountOutput | The actual number of points acquired. |
| outPoints | The points acquired. |
0 indicates success, and other values indicate failure.| int Pxr_GetBoundaryGeometry2 | ( | bool | isPlayArea, |
| float ** | outPointsFloat, | ||
| uint32_t * | pointsCountOutput | ||
| ) |
Gets the collection of boundary points.
| isPlayArea | Whether it is an internal rectangular area:
|
| outPointsFloat | The points acquired. |
| pointsCountOutput | The number of points acquired. |
0 indicates success, and other values indicate failure.| bool Pxr_GetBoundaryVisible | ( | ) |
Gets whether the boundary is visible.
true: visible false: invisible | int Pxr_GetCameraDataExt | ( | uint8_t ** | data | ) |
| int Pxr_GetConfigFloat | ( | PxrConfigType | configIndex, |
| float * | configData | ||
| ) |
Gets the value of the specified configuration item.
| configIndex | The configuration item. Enumerations:
|
| configData | Returns the value of the specified configuration item. |
0 indicates success, and other values indicate failure.| int Pxr_GetConfigInt | ( | PxrConfigType | configIndex, |
| int * | configData | ||
| ) |
Gets the value of the specified configuration item.
| configIndex | The configuration item. Enumerations:
|
| configData | Returns the value of the specified configuration item. |
0 indicates success, and other values indicate failure.| int Pxr_GetConfigViewsInfos | ( | uint32_t * | maxImageRectWidth, |
| uint32_t * | maxImageRectHeight, | ||
| uint32_t * | recommendedImageRectWidth, | ||
| uint32_t * | recommendedImageRectHeight | ||
| ) |
Gets the maximum and recommended width and height (in pixels) of the Render Buffer.
| maxImageRectWidth | The max. width. |
| maxImageRectHeight | The max. height. |
| recommendedImageRectWidth | The recommended width. |
| recommendedImageRectHeight | The recommended height. |
0 indicates success, and other values indicate failure.| int Pxr_GetDeviceExtensionsVk | ( | const char ** | extensionNamesArray, |
| uint32_t * | extensionCount | ||
| ) |
Gets the Vulkan extensions supported by the device.
| extensionNamesArray | An array of Vulkan extensions supported by the acquired device. |
| extensionCount | The number of Vulkan extensions supported by the acquired device. |
0 indicates success, and other values indicate failure.| int Pxr_GetDeviceExtensionsXRPlatform | ( | char ** | namesString, |
| uint32_t * | extensionCount, | ||
| uint32_t | namesCapacityIn | ||
| ) |
| int Pxr_GetDialogState | ( | ) |
Gets the reason why the boundary dialog box appears.
-1: NothingDialog (positional tracking disabled, no dialog box) 0: GobackDialog (visible when leaving the boundary, hidden when back to the boundary) 1: ToofarDialog (3 meters away from the boundary) 2: LostDialog (6 Dof lost with no reason) 3: LostNoReason (6 Dof lost with no reason) 4: LostCamera (incorrect camera caliberation parameters) 5: LostHighLight (too bright); 6-LostLowLight (too dark) 7: LostLowFeatureCount (not enough environment feature points) 8: LostReLocation (recovering positional tracking) | int Pxr_GetDisplayRefreshRate | ( | float * | refreshRate | ) |
Gets the current display refresh rate.
| refreshRate | The display refresh rate to output. |
0 indicates success, and other values indicate failure.| int Pxr_GetDisplayRefreshRatesAvailable | ( | uint32_t * | count, |
| float ** | rateArray | ||
| ) |
Gets the available display refresh rates.
| count | The number of available display refresh rates. |
| rateArray | An array of available display refresh rates. |
0 indicates success, and other values indicate failure.| int Pxr_GetEyeTrackingData | ( | PxrEyeTrackingData * | eyeTrackingData | ) |
Gets the eye tracking data.
| eyeTrackingData | A structure that contains the following:
|
0 indicates success, and other values indicate failure.
| bool Pxr_GetFeatureSupported | ( | PxrFeatureType | feature | ) |
| int Pxr_GetFov | ( | PxrEyeType | eye, |
| float * | fovLeft, | ||
| float * | fovRight, | ||
| float * | fovUp, | ||
| float * | fovDown | ||
| ) |
Gets the FOV of the current device.
| eye | The eye to get FOV for:
|
| fovLeft | Horizontal left FOV. |
| fovRight | Horizontal right FOV. |
| fovUp | Vertical up FOV. |
| fovDown | Vertical down FOV. |
0 indicates success, and other values indicate failure.| PxrFoveationLevel Pxr_GetFoveationLevel | ( | ) |
| int Pxr_GetFrustum | ( | PxrEyeType | eye, |
| float * | left, | ||
| float * | right, | ||
| float * | top, | ||
| float * | bottom, | ||
| float * | near, | ||
| float * | far | ||
| ) |
| int Pxr_GetInstanceExtensionsVk | ( | const char ** | extensionNamesArray, |
| uint32_t * | extensionCount | ||
| ) |
Gets the Vulkan extensions supported by the instance.
| extensionNamesArray | An array of Vulkan extensions supported by the acquired instance. |
| extensionCount | The number of Vulkan extensions supported by the acquired instance. |
0 indicates success, and other values indicate failure.| int Pxr_GetInstanceExtensionsXRPlatform | ( | char ** | namesString, |
| uint32_t * | extensionCount, | ||
| uint32_t | namesCapacityIn | ||
| ) |
| bool Pxr_GetIntSysProc | ( | char * | command, |
| int * | rlt | ||
| ) |
| float Pxr_GetIPD | ( | ) |
Gets the IPD (interpupillary distance).
0 indicates success, and other values indicate failure.| int Pxr_GetLayerAndroidSurface | ( | int | layerId, |
| PxrEyeType | eye, | ||
| jobject * | androidSurface | ||
| ) |
Gets the Android surface created when the layer is created.
Note: This API is available only if the layerFlags parameters contains PXR_LAYER_FLAG_ANDROID_SURFACE when Pxr_CreateLayer is called. It can be used for video media decoding.
0 indicates success, and other values indicate failure.| int Pxr_GetLayerFoveationImage | ( | int | layerId, |
| PxrEyeType | eye, | ||
| uint64_t * | foveationImage, | ||
| uint32_t * | width, | ||
| uint32_t * | height | ||
| ) |
| int Pxr_GetLayerImage | ( | int | layerId, |
| PxrEyeType | eye, | ||
| int | imageIndex, | ||
| uint64_t * | image | ||
| ) |
Gets the handle of a specified image used in a specified layer.
| layerId | The layer ID. |
| eye | The eye that the image comes from:
|
| imageIndex | The image idex. |
| image | Returns the handle value of the specified image:
|
0 indicates success, and other values indicate failure.| int Pxr_GetLayerImageCount | ( | int | layerId, |
| PxrEyeType | eye, | ||
| uint32_t * | imageCount | ||
| ) |
Gets the number of images corresponding to a specified layer.
| layerId | The layer ID. |
| eye | The eye that the images come from:
|
| imageCount | Returns the number of images. |
0 indicates success, and other values indicate failure.| int Pxr_GetLayerNextImageIndex | ( | int | layerId, |
| int * | imageIndex | ||
| ) |
Gets the index of the handle of the image to be rendered in the next frame of the layer.
| layerId | The layer ID. |
| imageIndex | Returns the index of the image handle.. |
0 indicates success, and other values indicate failure.| int Pxr_GetMrcPose | ( | PxrPosef * | pose | ) |
| bool Pxr_GetMrcStatus | ( | ) |
| int Pxr_GetPerformanceLevels | ( | PxrPerfSettings | which, |
| int * | level | ||
| ) |
| int Pxr_GetPredictedDisplayTime | ( | double * | predictedDisplayTimeMs | ) |
Gets the predicted display time of the current rendered frame.
| predictedDisplayTimeMs | Returns the predicted display time (in milliseconds) of the current rendered frame. |
0 indicates success, and other values indicate failure.
| int Pxr_GetPredictedMainSensorState | ( | double | predictTimeMs, |
| PxrSensorState * | sensorState, | ||
| int * | sensorFrameIndex | ||
| ) |
Gets the predicted position and pose of the head.
| predictTimeMs | The predicted display time (in milliseconds) of the current rendered frame, obtained by calling Pxr_GetPredictedDisplayTime. |
| sensorState | Returns the acquired position and pose of the sensor and other data. |
| sensorFrameIndex | Returns the serial number corresponding to the pose and position of the sensor. |
0 indicates success, and other values indicate failure.
| int Pxr_GetPredictedMainSensorState2 | ( | double | predictTimeMs, |
| PxrSensorState2 * | sensorState, | ||
| int * | sensorFrameIndex | ||
| ) |
| int Pxr_GetPredictedMainSensorStateWithEyePose | ( | double | predictTimeMs, |
| PxrSensorState * | sensorState, | ||
| int * | sensorFrameIndex, | ||
| int | eyeCount, | ||
| PxrPosef * | eyePoses | ||
| ) |
Gets the predicted position and pose data of the head, and gets the corresponding eye pose as well.
| predictTimeMs | The predicted display time (in milliseconds) of the current rendered frame, obtained by calling Pxr_GetPredictedDisplayTime. |
| sensorState | Returns the position and pose of the sensor as well as other data acquired. |
| sensorFrameIndex | Returns the serial number corresponding to the position and pose of the sensor. |
0 indicates success, and other values indicate failure.
| int Pxr_GetRoomModeState | ( | ) |
| int Pxr_GetSeeThroughData | ( | PxrSeeThoughData * | data | ) |
Gets the SeeThrough camera image.
| data | A structure that contains the following:
|
0 indicates success, and other values indicate failure.| int Pxr_GetTrackingMode | ( | PxrTrackingModeFlags * | trackingMode | ) |
Gets the value of tracking mode.
| trackingMode | The value of tracking mode acquired. Value 7 indicates that eye tracking is supported. |
0 indicates success, and other values indicate failure.
| int Pxr_GetTrackingOrigin | ( | PxrTrackingOrigin * | trackingOrigin | ) |
Gets tracking origin settings.
| trackingOrigin | Returns the tracking origin settings. |
0 indicates success, and other values indicate failure.
| int Pxr_Initialize | ( | ) |
Initializes the SDK.
0 indicates success, and other values indicate failure.
| bool Pxr_IsInitialized | ( | ) |
Gets whether the SDK is initialized.
true: initialized false: not initialized
| bool Pxr_IsRunning | ( | ) |
Checks whether the XR mode has been entered.
true: entered false: not entered
| void Pxr_LogPrint | ( | int | priority, |
| const char * | tag, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
| int Pxr_PauseGuardianSystemForSTS | ( | ) |
| bool Pxr_PollEvent | ( | int | eventCountMAX, |
| int * | eventDataCountOutput, | ||
| PxrEventDataBuffer ** | eventDataPtr | ||
| ) |
Gets the latest event.
| eventCountMAX | The maximum number of messages. |
| eventDataCountOutput | The number of messages received. |
| eventDataPtr | The array of the event structure. |
true: new event false: no event | void Pxr_RegisteKeyEventCallback | ( | void * | func | ) |
| int Pxr_ResetSensor | ( | PxrResetSensorOption | option | ) |
Resets the pose.
| option | The options for reset:
|
0 indicates success, and other values indicate failure.
| int Pxr_ResumeGuardianSystemForSTS | ( | ) |
| int Pxr_SetBoundaryVisible | ( | bool | value | ) |
Sets the boundary as visible or invisible.
| value | The visibility of the boundary:
|
0 indicates success, and other values indicate failure.| int Pxr_SetColorSpace | ( | PxrColorSpace | colorSpace | ) |
Sets the color space.
| colorSpace | The color space type:
|
0 indicates success, and other values indicate failure.
| int Pxr_SetConfigInt | ( | PxrConfigType | configSetIndex, |
| int | configSetData | ||
| ) |
Sets the value of the specified configuration item.
| configIndex | The configuration item. Enumerations:
|
| configData | The value of the specified configuration item. |
0 indicates success, and other values indicate failure.| int Pxr_SetConfigString | ( | PxrConfigType | configIndex, |
| const char * | configSetData | ||
| ) |
| int Pxr_SetConfigUint64 | ( | PxrConfigType | configIndex, |
| uint64_t | configSetData | ||
| ) |
| int Pxr_SetControllerPoseToBoundary | ( | const PxrPosef * | pose, |
| PxrControllerHandness | hand, | ||
| bool | valid | ||
| ) |
| int Pxr_SetDisplayRefreshRate | ( | float | refreshRate | ) |
Sets the display refresh rate.
| refreshRate | The display refresh rate (in Hz) to set:
|
0 indicates success, and other values indicate failure.| bool Pxr_SetExtraLatencyMode | ( | int | mode | ) |
| int Pxr_SetFoveationLevel | ( | PxrFoveationLevel | level | ) |
Sets the foveated rendering level.
| level | Foveated rendering level:
|
0 indicates success, and other values indicate failure.| int Pxr_SetFoveationParams | ( | PxrFoveationParams | params | ) |
| int Pxr_SetFrustum | ( | PxrEyeType | eye, |
| float | left, | ||
| float | right, | ||
| float | top, | ||
| float | bottom, | ||
| float | near, | ||
| float | far | ||
| ) |
| int Pxr_SetGraphicOption | ( | PxrGraphicOption | graphic | ) |
Sets the type of graphics API.
| graphic | Graphics API type:
|
| int Pxr_SetGuardianSystemDisable | ( | bool | disable | ) |
| int Pxr_SetInitializeData | ( | PxrInitParamData * | params | ) |
Sets the data required for initializing SDK.
Note: This API needs to be called before all the other init-related APIs.
| PxrInitParamData | A structure that contains the collection of required data for initialization:
|
| int Pxr_SetMonoMode | ( | bool | mono | ) |
| int Pxr_SetMrcPose | ( | const PxrPosef * | pose | ) |
| int Pxr_SetPerformanceLevels | ( | PxrPerfSettings | which, |
| int | level | ||
| ) |
| int Pxr_SetPlatformOption | ( | PxrPlatformOption | platform | ) |
Specifies the build platform.
| platform | Build platform:
|
| int Pxr_SetSeeThroughBackground | ( | bool | value | ) |
| int Pxr_SetSeeThroughImageExtent | ( | uint32_t | width, |
| uint32_t | height | ||
| ) |
| int Pxr_SetSeeThroughVisible | ( | bool | value | ) |
| int Pxr_SetSensorLostCMST | ( | bool | value | ) |
| int Pxr_SetSensorLostCustomMode | ( | bool | value | ) |
| int Pxr_SetTrackingMode | ( | PxrTrackingModeFlags | trackingMode | ) |
Sets the tracking mode.
| trackingMode | Tracking mode:
|
0 indicates success, and other values indicate failure.| int Pxr_SetTrackingOrigin | ( | PxrTrackingOrigin | trackingOrigin | ) |
Sets tracking origin mode.
| trackingOrigin | The tracking origon mode:
|
0 indicates success, and other values indicate failure.| int Pxr_Shutdown | ( | ) |
Exits and releases resources.
0 indicates success, and other values indicate failure.| int Pxr_ShutdownSdkGuardianSystem | ( | ) |
| int Pxr_StartCameraPreview | ( | int | value | ) |
| int Pxr_StartSdkBoundary | ( | ) |
| int Pxr_SubmitLayer | ( | const PxrLayerHeader * | layer | ) |
Commits the current rendering layer.
| layer | The actual object can be PxrLayerProjection, PxrLayerQuad, or PxrLayerCylinder. The PxrLayerHeader structure contains the following:
The PxrLayerProjection (for Render Buffer layer submission) structure contains the following:
The PxrLayerQuad (for 2D planar layer submission) structure contains the following:
The PxrLayerCylinder (for column layer submission) structure contains the following:
|
0 indicates success, and other values indicate failure.| int Pxr_TestNodeIsInBoundary | ( | PxrBoundaryTestNode | node, |
| bool | isPlayArea, | ||
| PxrBoundaryTriggerInfo * | info | ||
| ) |
Checks whether a tracked node will trigger the boundary.
| node | The node to track:
|
| isPlayArea | Whether it is an internal rectangular area:
|
| info | A structure containing the following:
|
0 indicates success, and other values indicate failure.| int Pxr_TestPointIsInBoundary | ( | const PxrVector3f * | point, |
| bool | isPlayArea, | ||
| PxrBoundaryTriggerInfo * | info | ||
| ) |
Checks whether a tracked point in the coordinate system will trigger the boundary.
| point | The coordinate of the point. |
| isPlayArea | Whether it is an internal rectangular area:
|
| info | A structure containing the following:
|
0 indicates success, and other values indicate failure.