Class VRResources

java.lang.Object
org.lwjgl.openvr.VRResources

public class VRResources extends Object
Shared Resource Methods.
  • Method Details

    • nVRResources_LoadSharedResource

      public static int nVRResources_LoadSharedResource(long pchResourceName, long pchBuffer, int unBufferLen)
      Unsafe version of: LoadSharedResource
    • VRResources_LoadSharedResource

      public static int VRResources_LoadSharedResource(ByteBuffer pchResourceName, @Nullable ByteBuffer pchBuffer)
      Loads the specified resource into the provided buffer if large enough.
      Returns:
      the size in bytes of the buffer required to hold the specified resource
    • VRResources_LoadSharedResource

      public static int VRResources_LoadSharedResource(CharSequence pchResourceName, @Nullable ByteBuffer pchBuffer)
      Loads the specified resource into the provided buffer if large enough.
      Returns:
      the size in bytes of the buffer required to hold the specified resource
    • VRResources_LoadSharedResource

      public static String VRResources_LoadSharedResource(CharSequence pchResourceName, int unBufferLen)
      Loads the specified resource into the provided buffer if large enough.
      Returns:
      the size in bytes of the buffer required to hold the specified resource
    • nVRResources_GetResourceFullPath

      public static int nVRResources_GetResourceFullPath(long pchResourceName, long pchResourceTypeDirectory, long pchPathBuffer, int unBufferLen)
      Unsafe version of: GetResourceFullPath
    • VRResources_GetResourceFullPath

      public static int VRResources_GetResourceFullPath(ByteBuffer pchResourceName, ByteBuffer pchResourceTypeDirectory, @Nullable ByteBuffer pchPathBuffer)
      Provides the full path to the specified resource. Resource names can include named directories for drivers and other things, and this resolves all of those and returns the actual physical path. pchResourceTypeDirectory is the subdirectory of resources to look in.
    • VRResources_GetResourceFullPath

      public static int VRResources_GetResourceFullPath(CharSequence pchResourceName, CharSequence pchResourceTypeDirectory, @Nullable ByteBuffer pchPathBuffer)
      Provides the full path to the specified resource. Resource names can include named directories for drivers and other things, and this resolves all of those and returns the actual physical path. pchResourceTypeDirectory is the subdirectory of resources to look in.
    • VRResources_GetResourceFullPath

      public static String VRResources_GetResourceFullPath(CharSequence pchResourceName, CharSequence pchResourceTypeDirectory, int unBufferLen)
      Provides the full path to the specified resource. Resource names can include named directories for drivers and other things, and this resolves all of those and returns the actual physical path. pchResourceTypeDirectory is the subdirectory of resources to look in.