Package com.jme3.system.jopenvr
Class OpenVRUtil
java.lang.Object
com.jme3.system.jopenvr.OpenVRUtil
A utility class that provide helper methods for OpenVR system.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getEColorSpaceString
(int eColorSpace) Get the description of the givencolor space
.static String
getETextureTypeString
(int type) Get the description of the giventexture type
.static String
getETrackedDevicePropertyString
(int property) Get the description of the given tracked device property.static String
getETrackedPropertyErrorString
(int error) Get the String description of the givenstring tracked property error
.static String
getEVRCompositorErrorString
(int error) Get the description of the givenEVR compositor error
.static String
getEVRInitErrorString
(int error) Get the description of the givenEVR init error
.static String
getTrackedDeviceStringProperty
(VR_IVRSystem_FnTable system, int deviceIndex, int property) Get the value of the given stringproperty
attached to the given device.static String
getTrackedDeviceStringProperty
(VR_IVRSystem_FnTable system, int deviceIndex, int property, int bufferSize) Get the value of the given stringproperty
attached to the given device.
-
Method Details
-
getTrackedDeviceStringProperty
public static String getTrackedDeviceStringProperty(VR_IVRSystem_FnTable system, int deviceIndex, int property, int bufferSize) Get the value of the given stringproperty
attached to the given device.- Parameters:
system
- the underlying OpenVR system.deviceIndex
- the index of the device to query.property
- the property to query.bufferSize
- the size of the buffer to use for storing native string.- Returns:
- the value of the given string property attached to the given device.
- See Also:
-
getTrackedDeviceStringProperty
public static String getTrackedDeviceStringProperty(VR_IVRSystem_FnTable system, int deviceIndex, int property) Get the value of the given stringproperty
attached to the given device.- Parameters:
system
- the underlying OpenVR system.deviceIndex
- the index of the device to query.property
- the property to query.- Returns:
- the value of the given string property attached to the given device.
- See Also:
-
getETrackedPropertyErrorString
Get the String description of the givenstring tracked property error
.- Parameters:
error
- the string tracked property error.- Returns:
- the String description of the given string tracked property error.
-
getEColorSpaceString
Get the description of the givencolor space
.- Parameters:
eColorSpace
- the color space.- Returns:
- the description of the given color space.
-
getETextureTypeString
Get the description of the giventexture type
.- Parameters:
type
- the texture type- Returns:
- the description of the given texture type.
-
getEVRCompositorErrorString
Get the description of the givenEVR compositor error
.- Parameters:
error
- the EVR compositor error.- Returns:
- the description of the given EVR compositor error.
-
getEVRInitErrorString
Get the description of the givenEVR init error
.- Parameters:
error
- the EVR init error.- Returns:
- the description of the given EVR init error.
-
getETrackedDevicePropertyString
Get the description of the given tracked device property.- Parameters:
property
- the tracked device property.- Returns:
- the description of the given tracked device property.
-