Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Application Programming Interface to be used by C SR applications. More...
Functions | |
SRAPI SR_camera | createCamera (SRContext context) |
Creates a functional Camera instance. More... | |
SRAPI SR_camera | createCameraByDescriptor (SRContext context, SR_cameraDescriptor descriptor) |
Creates a Camera instance to provide feedback about the Eyetracker. More... | |
SRAPI SR_videoListener | createVideoListener (SR_camera camera, void(*acceptVideoCallback)(SR_videoFrame)) |
Create a new callback function to listen to a specific camera. More... | |
SRAPI void | deleteVideoListener (SR_videoListener videoListener) |
Cleans up underlying object instances used to facilitate video update callbacks. More... | |
SRAPI SRContext | newSRContext () |
Construct an instance of SRContext, the environment in which created senses are kept track of. More... | |
SRAPI SRContext | newSRContextLensPreference (bool lensPreference) |
Construct an instance of SRContext, the environment in which created senses are kept track of. More... | |
SRAPI void | initializeSRContext (SRContext context) |
Initialize all senses. More... | |
SRAPI void | deleteSRContext (SRContext context) |
Delete and clean up the instance of SRContext. More... | |
SRAPI SR_systemSense | createSystemSense (SRContext context) |
Creates a functional SystemSense instance. More... | |
SRAPI SR_systemEventListener | createSystemEventListener (SR_systemSense systemSense, void(*acceptSystemEventCallback)(SR_systemEvent)) |
Add a new callback function to listen to a specific systemSense. More... | |
SRAPI void | deleteSystemEventListener (SR_systemEventListener systemEventListener) |
Cleans up underlying object instances used to facilitate system event update callbacks. More... | |
SRAPI SR_screen | createScreen (SRContext context) |
Creates a functional Screen instance. More... | |
SRAPI const int | getResolutionHeight (SR_screen screen) |
Returns resolution height of screen instance as seen by user. More... | |
SRAPI const int | getResolutionWidth (SR_screen screen) |
Returns resolution width of screen instance as seen by user. More... | |
SRAPI const int | getPhysicalResolutionHeight (SR_screen screen) |
Returns physical resolution height of screen instance. More... | |
SRAPI const int | getPhysicalResolutionWidth (SR_screen screen) |
Returns physical resolution width of screen instance. More... | |
SRAPI const float | getPhysicalSizeHeight (SR_screen screen) |
Returns physical screen height in cm. More... | |
SRAPI const float | getPhysicalSizeWidth (SR_screen screen) |
Returns physical screen width in cm. More... | |
SRAPI const float | getDotPitch (SR_screen screen) |
Returns distance between pixels in cm. More... | |
SRAPI SR_switchableLensHint | createSwitchableLensHint (SRContext context) |
Creates a functional SwitchableLensHints instance. More... | |
SRAPI void | lensEnableHint (SR_switchableLensHint lensHint) |
SRAPI void | lensDisableHint (SR_switchableLensHint lensHint) |
SRAPI void | deleteSwitchableLensHint (SR_switchableLensHint lensHint) |
Cleans up underlying object instances used to facilitate indicating lens switch preferance. More... | |
SRAPI SR_eyeTracker | createEyeTracker (SRContext context) |
Creates a functional EyeTracker instance. More... | |
SRAPI SR_eyePairListener | createEyePairListener (SR_eyeTracker eyeTracker, void(*acceptEyePairCallback)(SR_eyePair)) |
Create a new callback function to listen to a specific eyetracker. More... | |
SRAPI void | deleteEyePairListener (SR_eyePairListener eyePairListener) |
Cleans up underlying object instances used to facilitate eye position update callbacks. More... | |
SRAPI SR_headTracker | createHeadTracker (SRContext context) |
Creates a functional Headtracker instance. More... | |
SRAPI SR_headListener | createHeadListener (SR_headTracker headTracker, void(*acceptHeadCallback)(SR_head)) |
Create a new callback function to listen to a specific headtracker. More... | |
SRAPI void | deleteHeadListener (SR_headListener headListener) |
Cleans up underlying object instances used to facilitate head position update callbacks. More... | |
SRAPI SR_handTracker | createHandTracker (SRContext context) |
Creates a functional HandTracker instance. More... | |
SRAPI SR_handPoseListener | createHandPoseListener (SR_handTracker handTracker, void(*acceptHandPoseCallback)(SR_handPose)) |
Create a new callback function to listen to a specific handtracker. More... | |
SRAPI void | deleteHandPoseListener (SR_handPoseListener handPoseListener) |
Cleans up underlying object instances used to facilitate hand pose update callbacks. More... | |
SRAPI SR_handEventListener | createHandEventListener (SR_handTracker handTracker, void(*acceptHandEventCallback)(SR_handEvent)) |
Create a new callback function to listen to a specific handtracker. More... | |
SRAPI void | deleteHandEventListener (SR_handEventListener handEventListener) |
Cleans up underlying object instances used to facilitate hand event update callbacks. More... | |
SRAPI const char * | getSRPlatformVersion () |
Get the full version SR Platform in [MAJOR].[MINOR].[PATCH].[GIT_HASH]. More... | |
Application Programming Interface to be used by C SR applications.
Creates a functional Camera instance.
context | is the environment in which created senses are kept track of |
The Camera class is abstract and requires a device specific implementation to be used in applications. This function constructs an Camera suitable for use in your application on the current device.
SRAPI SR_camera createCameraByDescriptor | ( | SRContext | context, |
SR_cameraDescriptor | descriptor | ||
) |
Creates a Camera instance to provide feedback about the Eyetracker.
context | is the environment in which created senses are kept track of |
SRAPI SR_eyePairListener createEyePairListener | ( | SR_eyeTracker | eyeTracker, |
void(*)(SR_eyePair) | acceptEyePairCallback | ||
) |
Create a new callback function to listen to a specific eyetracker.
eyeTracker | is the address of the C++ SR::EyeTracker implementation to connect with. It is provided by the createEyeTracker function. |
acceptEyePairCallback | is a function pointer to a callback function which will be called when new SR_eyePair data is available. |
SRAPI SR_eyeTracker createEyeTracker | ( | SRContext | context | ) |
Creates a functional EyeTracker instance.
context | is the environment in which created senses are kept track of |
The EyeTracker class is abstract and requires a device specific implementation to be used in applications. This function constructs an EyeTracker suitable for use in your application on the current device.
SRAPI SR_handEventListener createHandEventListener | ( | SR_handTracker | handTracker, |
void(*)(SR_handEvent) | acceptHandEventCallback | ||
) |
Create a new callback function to listen to a specific handtracker.
handTracker | is the address of the C++ SR::HandTracker implementation to connect with. It is provided by the createHandTracker function. |
acceptHandEventCallback | is a function pointer to a callback function which will be called when new SR_handEvent data is available. |
SRAPI SR_handPoseListener createHandPoseListener | ( | SR_handTracker | handTracker, |
void(*)(SR_handPose) | acceptHandPoseCallback | ||
) |
Create a new callback function to listen to a specific handtracker.
handTracker | is the address of the C++ SR::HandTracker implementation to connect with. It is provided by the createHandTracker function. |
acceptHandPoseCallback | is a function pointer to a callback function which will be called when new SR_handPose data is available. |
SRAPI SR_handTracker createHandTracker | ( | SRContext | context | ) |
Creates a functional HandTracker instance.
context | is the environment in which created senses are kept track of |
The HandTracker class is abstract and requires a device specific implementation to be used in applications. This function constructs an HandTracker suitable for use in your application on the current device.
SRAPI SR_headListener createHeadListener | ( | SR_headTracker | headTracker, |
void(*)(SR_head) | acceptHeadCallback | ||
) |
Create a new callback function to listen to a specific headtracker.
headtracker | is the address of the C++ SR::HeadTracker implementation to connect with. It is provided by the createHeadTracker function. |
acceptHeadCallback | is a function pointer to a callback function which will be called when new SR_head data is available. |
SRAPI SR_headTracker createHeadTracker | ( | SRContext | context | ) |
Creates a functional Headtracker instance.
context | is the environment in which created senses are kept track of |
The Headtracker class is abstract and requires a device specific implementation to be used in applications. This function constructs an HeadTracker suitable for use in your application on the current device.
Creates a functional Screen instance.
context | is the environment in which created senses are kept track of |
The screen class reads the current screen parameters and makes calls to get those parameters available.
SRAPI SR_switchableLensHint createSwitchableLensHint | ( | SRContext | context | ) |
Creates a functional SwitchableLensHints instance.
context | is the environment in which created senses are kept track of |
SRAPI SR_systemEventListener createSystemEventListener | ( | SR_systemSense | systemSense, |
void(*)(SR_systemEvent) | acceptSystemEventCallback | ||
) |
Add a new callback function to listen to a specific systemSense.
systemSense | is the address of the C++ SR::SystemSense implementation to connect with. It is provided by the createSystemSense function. |
acceptSystemEventCallback | is a function pointer to a callback function which will be called when new SR_systemEvent data is available. |
SRAPI SR_systemSense createSystemSense | ( | SRContext | context | ) |
Creates a functional SystemSense instance.
context | is the environment in which created senses are kept track of |
SRAPI SR_videoListener createVideoListener | ( | SR_camera | camera, |
void(*)(SR_videoFrame) | acceptVideoCallback | ||
) |
Create a new callback function to listen to a specific camera.
camera | is the address of the C++ SR::Camera implementation to connect with. It is provided by the createCamera function. |
acceptVideoCallback | is a function pointer to a callback function which will be called when new SR_videoFrame data is available. |
SRAPI void deleteEyePairListener | ( | SR_eyePairListener | eyePairListener | ) |
Cleans up underlying object instances used to facilitate eye position update callbacks.
eyePairListener | ( void* ) provided by the createEyePairListener function. |
SRAPI void deleteHandEventListener | ( | SR_handEventListener | handEventListener | ) |
Cleans up underlying object instances used to facilitate hand event update callbacks.
handEventListener | ( void* ) provided by the createHandEventListener function. |
SRAPI void deleteHandPoseListener | ( | SR_handPoseListener | handPoseListener | ) |
Cleans up underlying object instances used to facilitate hand pose update callbacks.
handPoseListener | ( void* ) provided by the createHandPoseListener function. |
SRAPI void deleteHeadListener | ( | SR_headListener | headListener | ) |
Cleans up underlying object instances used to facilitate head position update callbacks.
headListener | ( void* ) provided by the creaeteHeadListener function. |
Delete and clean up the instance of SRContext.
context | is provided from newSRContext |
SRAPI void deleteSwitchableLensHint | ( | SR_switchableLensHint | lensHint | ) |
Cleans up underlying object instances used to facilitate indicating lens switch preferance.
lensHint | ( void* ) provided by the createSwitchableLensHint function. |
SRAPI void deleteSystemEventListener | ( | SR_systemEventListener | systemEventListener | ) |
Cleans up underlying object instances used to facilitate system event update callbacks.
systemEventListener | ( void* ) provided by the createSystemEventListener function. |
SRAPI void deleteVideoListener | ( | SR_videoListener | videoListener | ) |
Cleans up underlying object instances used to facilitate video update callbacks.
videoListener | ( void* ) provided by the createVideoListener function. |
Returns distance between pixels in cm.
screen | ( SR::Screen* ) is the screen object created through the C API. |
Returns physical resolution height of screen instance.
screen | ( SR::Screen* ) is the screen object created through the C API. |
Returns physical resolution width of screen instance.
screen | ( SR::Screen* ) is the screen object created through the C API. |
Returns physical screen height in cm.
screen | ( SR::Screen* ) is the screen object created through the C API. |
Returns physical screen width in cm.
screen | ( SR::Screen* ) is the screen object created through the C API. |
Returns resolution height of screen instance as seen by user.
screen | ( SR::Screen* ) is the screen object created through the C API. |
Returns resolution width of screen instance as seen by user.
screen | ( SR::Screen* ) is the screen object created through the C API. |
SRAPI const char * getSRPlatformVersion | ( | ) |
Initialize all senses.
context | is provided from newSRContext |
Call after all objects and senses have been added.
SRAPI void lensDisableHint | ( | SR_switchableLensHint | lensHint | ) |
Expresses preference to disable the lens to minimize the effect on the light transmitted through it
SRAPI void lensEnableHint | ( | SR_switchableLensHint | lensHint | ) |
Expresses preference to enable the lens such that it affects the light transmitted through it
Construct an instance of SRContext, the environment in which created senses are kept track of.
Construct an instance of SRContext, the environment in which created senses are kept track of.
lensPreference | is the initial lens preference. If it is set to false and there are no other applications which prefer the lens to be turned on, it will start in off state. |