Package org.lwjgl.openvr
Class VRResources
- java.lang.Object
-
- org.lwjgl.openvr.VRResources
-
public class VRResources extends java.lang.Object
Shared Resource Methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
nVRResources_GetResourceFullPath(long pchResourceName, long pchResourceTypeDirectory, long pchPathBuffer, int unBufferLen)
Unsafe version of:GetResourceFullPath
static int
nVRResources_LoadSharedResource(long pchResourceName, long pchBuffer, int unBufferLen)
Unsafe version of:LoadSharedResource
static java.lang.String
VRResources_GetResourceFullPath(java.lang.CharSequence pchResourceName, java.lang.CharSequence pchResourceTypeDirectory, int unBufferLen)
Provides the full path to the specified resource.static int
VRResources_GetResourceFullPath(java.lang.CharSequence pchResourceName, java.lang.CharSequence pchResourceTypeDirectory, java.nio.ByteBuffer pchPathBuffer)
Provides the full path to the specified resource.static int
VRResources_GetResourceFullPath(java.nio.ByteBuffer pchResourceName, java.nio.ByteBuffer pchResourceTypeDirectory, java.nio.ByteBuffer pchPathBuffer)
Provides the full path to the specified resource.static java.lang.String
VRResources_LoadSharedResource(java.lang.CharSequence pchResourceName, int unBufferLen)
Loads the specified resource into the provided buffer if large enough.static int
VRResources_LoadSharedResource(java.lang.CharSequence pchResourceName, java.nio.ByteBuffer pchBuffer)
Loads the specified resource into the provided buffer if large enough.static int
VRResources_LoadSharedResource(java.nio.ByteBuffer pchResourceName, java.nio.ByteBuffer pchBuffer)
Loads the specified resource into the provided buffer if large enough.
-
-
-
Method Detail
-
nVRResources_LoadSharedResource
public static int nVRResources_LoadSharedResource(long pchResourceName, long pchBuffer, int unBufferLen)
Unsafe version of:LoadSharedResource
-
VRResources_LoadSharedResource
public static int VRResources_LoadSharedResource(java.nio.ByteBuffer pchResourceName, @Nullable java.nio.ByteBuffer pchBuffer) public static int VRResources_LoadSharedResource(java.lang.CharSequence pchResourceName, @Nullable java.nio.ByteBuffer pchBuffer) public static java.lang.String VRResources_LoadSharedResource(java.lang.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(java.nio.ByteBuffer pchResourceName, java.nio.ByteBuffer pchResourceTypeDirectory, @Nullable java.nio.ByteBuffer pchPathBuffer) public static int VRResources_GetResourceFullPath(java.lang.CharSequence pchResourceName, java.lang.CharSequence pchResourceTypeDirectory, @Nullable java.nio.ByteBuffer pchPathBuffer) public static java.lang.String VRResources_GetResourceFullPath(java.lang.CharSequence pchResourceName, java.lang.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.
-
-