Class OpenVRUtil

java.lang.Object
com.jme3.system.jopenvr.OpenVRUtil

public class OpenVRUtil extends Object
A utility class that provide helper methods for OpenVR system.
  • Method Details

    • getTrackedDeviceStringProperty

      public static String getTrackedDeviceStringProperty(VR_IVRSystem_FnTable system, int deviceIndex, int property, int bufferSize)
      Get the value of the given string property 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 string property 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

      public static String getETrackedPropertyErrorString(int error)
      Get the String description of the given string tracked property error.
      Parameters:
      error - the string tracked property error.
      Returns:
      the String description of the given string tracked property error.
    • getEColorSpaceString

      public static String getEColorSpaceString(int eColorSpace)
      Get the description of the given color space.
      Parameters:
      eColorSpace - the color space.
      Returns:
      the description of the given color space.
    • getETextureTypeString

      public static String getETextureTypeString(int type)
      Get the description of the given texture type.
      Parameters:
      type - the texture type
      Returns:
      the description of the given texture type.
    • getEVRCompositorErrorString

      public static String getEVRCompositorErrorString(int error)
      Get the description of the given EVR compositor error.
      Parameters:
      error - the EVR compositor error.
      Returns:
      the description of the given EVR compositor error.
    • getEVRInitErrorString

      public static String getEVRInitErrorString(int error)
      Get the description of the given EVR init error.
      Parameters:
      error - the EVR init error.
      Returns:
      the description of the given EVR init error.
    • getETrackedDevicePropertyString

      public static String getETrackedDevicePropertyString(int property)
      Get the description of the given tracked device property.
      Parameters:
      property - the tracked device property.
      Returns:
      the description of the given tracked device property.