Top Constructors Methods
org.lwjgl.openvr

public Class VRRenderModels

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
nVRRenderModels_FreeRenderModel(long pRenderModel)

Unsafe version of: FreeRenderModel

public static void
nVRRenderModels_FreeTexture(long pTexture)

Unsafe version of: FreeTexture

public static long
nVRRenderModels_GetComponentButtonMask(long pchRenderModelName, long pchComponentName)

Unsafe version of: GetComponentButtonMask

public static int
nVRRenderModels_GetComponentCount(long pchRenderModelName)

Unsafe version of: GetComponentCount

public static int
nVRRenderModels_GetComponentName(long pchRenderModelName, int unComponentIndex, long pchComponentName, int unComponentNameLen)

Unsafe version of: GetComponentName

public static int
nVRRenderModels_GetComponentRenderModelName(long pchRenderModelName, long pchComponentName, long pchComponentRenderModelName, int unComponentRenderModelNameLen)

Unsafe version of: GetComponentRenderModelName

public static boolean
nVRRenderModels_GetComponentState(long pchRenderModelName, long pchComponentName, long pControllerState, long pState, long pComponentState)

Unsafe version of: GetComponentState

public static boolean
nVRRenderModels_GetComponentStateForDevicePath(long pchRenderModelName, long pchComponentName, long devicePath, long pState, long pComponentState)

Unsafe version of: GetComponentStateForDevicePath

public static long
public static int
nVRRenderModels_GetRenderModelName(int unRenderModelIndex, long pchRenderModelName, int unRenderModelNameLen)

Unsafe version of: GetRenderModelName

public static int
nVRRenderModels_GetRenderModelOriginalPath(long pchRenderModelName, long pchOriginalPath, int unOriginalPathLen, long peError)

Unsafe version of: GetRenderModelOriginalPath

public static int
nVRRenderModels_GetRenderModelThumbnailURL(long pchRenderModelName, long pchThumbnailURL, int unThumbnailURLLen, long peError)

Unsafe version of: GetRenderModelThumbnailURL

public static int
nVRRenderModels_LoadRenderModel_Async(long pchRenderModelName, long ppRenderModel)

Unsafe version of: LoadRenderModel_Async

public static int
nVRRenderModels_LoadTexture_Async(int textureId, long ppTexture)

Unsafe version of: LoadTexture_Async

public static int
nVRRenderModels_LoadTextureD3D11_Async(int textureId, long pD3D11Device, long ppD3D11Texture2D)

Unsafe version of: LoadTextureD3D11_Async

public static boolean
nVRRenderModels_RenderModelHasComponent(long pchRenderModelName, long pchComponentName)

Unsafe version of: RenderModelHasComponent

public static void
VRRenderModels_FreeRenderModel(RenderModel pRenderModel)

Frees a previously returned render model It is safe to call this on a null ptr.

public static void
VRRenderModels_FreeTexture(RenderModelTextureMap pTexture)

Frees a previously returned texture.

public static void
VRRenderModels_FreeTextureD3D11(long pD3D11Texture2D)

Use this to free textures created with LoadTextureD3D11_Async instead of calling Release on them.

public static long
VRRenderModels_GetComponentButtonMask(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName)

Get the button mask for all buttons associated with this component.

public static long
VRRenderModels_GetComponentButtonMask(CharSequence pchRenderModelName, CharSequence pchComponentName)

Get the button mask for all buttons associated with this component.

public static int
VRRenderModels_GetComponentCount(ByteBuffer pchRenderModelName)

Returns the number of components of the specified render model.

public static int
VRRenderModels_GetComponentCount(CharSequence pchRenderModelName)

Returns the number of components of the specified render model.

public static int
VRRenderModels_GetComponentName(ByteBuffer pchRenderModelName, int unComponentIndex, ByteBuffer pchComponentName)

Use this to get the names of available components.

public static int
VRRenderModels_GetComponentName(CharSequence pchRenderModelName, int unComponentIndex, ByteBuffer pchComponentName)

Use this to get the names of available components.

public static String
VRRenderModels_GetComponentName(CharSequence pchRenderModelName, int unComponentIndex, int unComponentNameLen)

Use this to get the names of available components.

public static int
VRRenderModels_GetComponentRenderModelName(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName, ByteBuffer pchComponentRenderModelName)

Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel_Async.

public static int
VRRenderModels_GetComponentRenderModelName(CharSequence pchRenderModelName, CharSequence pchComponentName, ByteBuffer pchComponentRenderModelName)

Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel_Async.

public static String
VRRenderModels_GetComponentRenderModelName(CharSequence pchRenderModelName, CharSequence pchComponentName, int unComponentRenderModelNameLen)

Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel_Async.

public static boolean
VRRenderModels_GetComponentState(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName, VRControllerState pControllerState, RenderModelControllerModeState pState, RenderModelComponentState pComponentState)

This version of GetComponentState takes a controller state block instead of an action origin.

public static boolean
VRRenderModels_GetComponentState(CharSequence pchRenderModelName, CharSequence pchComponentName, VRControllerState pControllerState, RenderModelControllerModeState pState, RenderModelComponentState pComponentState)

This version of GetComponentState takes a controller state block instead of an action origin.

public static boolean

Returns:

if the pchRenderModelName or pchComponentName is invalid, this will return false (and transforms will be set to identity). Otherwise, return true Note: For dynamic objects, visibility may be dynamic. (I.e., true/false will be returned based on controller state and controller mode state).
VRRenderModels_GetComponentStateForDevicePath
(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName, long devicePath, RenderModelControllerModeState pState, RenderModelComponentState pComponentState)

public static boolean

Returns:

if the pchRenderModelName or pchComponentName is invalid, this will return false (and transforms will be set to identity). Otherwise, return true Note: For dynamic objects, visibility may be dynamic. (I.e., true/false will be returned based on controller state and controller mode state).
VRRenderModels_GetComponentStateForDevicePath
(CharSequence pchRenderModelName, CharSequence pchComponentName, long devicePath, RenderModelControllerModeState pState, RenderModelComponentState pComponentState)

public static int
VRRenderModels_GetRenderModelCount()

Returns the number of available render models.

public static String
VRRenderModels_GetRenderModelErrorNameFromEnum(int error)

Returns a string for a render model error.

public static int
VRRenderModels_GetRenderModelName(int unRenderModelIndex, ByteBuffer pchRenderModelName)

Use this to get the names of available render models.

public static String
VRRenderModels_GetRenderModelName(int unRenderModelIndex, int unRenderModelNameLen)

Use this to get the names of available render models.

public static int
VRRenderModels_GetRenderModelOriginalPath(ByteBuffer pchRenderModelName, ByteBuffer pchOriginalPath, IntBuffer peError)

Provides a render model path that will load the unskinned model if the model name provided has been replace by the user.

public static int
VRRenderModels_GetRenderModelOriginalPath(CharSequence pchRenderModelName, ByteBuffer pchOriginalPath, IntBuffer peError)

Provides a render model path that will load the unskinned model if the model name provided has been replace by the user.

public static String
VRRenderModels_GetRenderModelOriginalPath(CharSequence pchRenderModelName, int unOriginalPathLen, IntBuffer peError)

Provides a render model path that will load the unskinned model if the model name provided has been replace by the user.

public static int
VRRenderModels_GetRenderModelThumbnailURL(ByteBuffer pchRenderModelName, ByteBuffer pchThumbnailURL, IntBuffer peError)

Returns the URL of the thumbnail image for this rendermodel.

public static int
VRRenderModels_GetRenderModelThumbnailURL(CharSequence pchRenderModelName, ByteBuffer pchThumbnailURL, IntBuffer peError)

Returns the URL of the thumbnail image for this rendermodel.

public static String
VRRenderModels_GetRenderModelThumbnailURL(CharSequence pchRenderModelName, int unThumbnailURLLen, IntBuffer peError)

Returns the URL of the thumbnail image for this rendermodel.

public static int
VRRenderModels_LoadIntoTextureD3D11_Async(int textureId, long pDstTexture)

Helper function to copy the bits into an existing texture.

public static int
VRRenderModels_LoadRenderModel_Async(ByteBuffer pchRenderModelName, PointerBuffer ppRenderModel)

Loads and returns a render model for use in the application.

public static int
VRRenderModels_LoadRenderModel_Async(CharSequence pchRenderModelName, PointerBuffer ppRenderModel)

Loads and returns a render model for use in the application.

public static int
VRRenderModels_LoadTexture_Async(int textureId, PointerBuffer ppTexture)

Loads and returns a texture for use in the application.

public static int
VRRenderModels_LoadTextureD3D11_Async(int textureId, long pD3D11Device, PointerBuffer ppD3D11Texture2D)

Creates a D3D11 texture and loads data into it.

public static boolean
VRRenderModels_RenderModelHasComponent(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName)

Returns true if the render model has a component with the specified name.

public static boolean
VRRenderModels_RenderModelHasComponent(CharSequence pchRenderModelName, CharSequence pchComponentName)

Returns true if the render model has a component with the specified name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VRRenderModelsback to summary
protected VRRenderModels()

Method Detail

nVRRenderModels_FreeRenderModelback to summary
public static void nVRRenderModels_FreeRenderModel(long pRenderModel)

Unsafe version of: FreeRenderModel

nVRRenderModels_FreeTextureback to summary
public static void nVRRenderModels_FreeTexture(long pTexture)

Unsafe version of: FreeTexture

nVRRenderModels_GetComponentButtonMaskback to summary
public static long nVRRenderModels_GetComponentButtonMask(long pchRenderModelName, long pchComponentName)

Unsafe version of: GetComponentButtonMask

nVRRenderModels_GetComponentCountback to summary
public static int nVRRenderModels_GetComponentCount(long pchRenderModelName)

Unsafe version of: GetComponentCount

nVRRenderModels_GetComponentNameback to summary
public static int nVRRenderModels_GetComponentName(long pchRenderModelName, int unComponentIndex, long pchComponentName, int unComponentNameLen)

Unsafe version of: GetComponentName

nVRRenderModels_GetComponentRenderModelNameback to summary
public static int nVRRenderModels_GetComponentRenderModelName(long pchRenderModelName, long pchComponentName, long pchComponentRenderModelName, int unComponentRenderModelNameLen)

Unsafe version of: GetComponentRenderModelName

nVRRenderModels_GetComponentStateback to summary
public static boolean nVRRenderModels_GetComponentState(long pchRenderModelName, long pchComponentName, long pControllerState, long pState, long pComponentState)

Unsafe version of: GetComponentState

nVRRenderModels_GetComponentStateForDevicePathback to summary
public static boolean nVRRenderModels_GetComponentStateForDevicePath(long pchRenderModelName, long pchComponentName, long devicePath, long pState, long pComponentState)

Unsafe version of: GetComponentStateForDevicePath

nVRRenderModels_GetRenderModelErrorNameFromEnumback to summary
public static long nVRRenderModels_GetRenderModelErrorNameFromEnum(int error)

Unsafe version of: GetRenderModelErrorNameFromEnum

nVRRenderModels_GetRenderModelNameback to summary
public static int nVRRenderModels_GetRenderModelName(int unRenderModelIndex, long pchRenderModelName, int unRenderModelNameLen)

Unsafe version of: GetRenderModelName

nVRRenderModels_GetRenderModelOriginalPathback to summary
public static int nVRRenderModels_GetRenderModelOriginalPath(long pchRenderModelName, long pchOriginalPath, int unOriginalPathLen, long peError)

Unsafe version of: GetRenderModelOriginalPath

nVRRenderModels_GetRenderModelThumbnailURLback to summary
public static int nVRRenderModels_GetRenderModelThumbnailURL(long pchRenderModelName, long pchThumbnailURL, int unThumbnailURLLen, long peError)

Unsafe version of: GetRenderModelThumbnailURL

nVRRenderModels_LoadRenderModel_Asyncback to summary
public static int nVRRenderModels_LoadRenderModel_Async(long pchRenderModelName, long ppRenderModel)

Unsafe version of: LoadRenderModel_Async

nVRRenderModels_LoadTexture_Asyncback to summary
public static int nVRRenderModels_LoadTexture_Async(int textureId, long ppTexture)

Unsafe version of: LoadTexture_Async

nVRRenderModels_LoadTextureD3D11_Asyncback to summary
public static int nVRRenderModels_LoadTextureD3D11_Async(int textureId, long pD3D11Device, long ppD3D11Texture2D)

Unsafe version of: LoadTextureD3D11_Async

nVRRenderModels_RenderModelHasComponentback to summary
public static boolean nVRRenderModels_RenderModelHasComponent(long pchRenderModelName, long pchComponentName)

Unsafe version of: RenderModelHasComponent

VRRenderModels_FreeRenderModelback to summary
public static void VRRenderModels_FreeRenderModel(RenderModel pRenderModel)

Frees a previously returned render model It is safe to call this on a null ptr.

VRRenderModels_FreeTextureback to summary
public static void VRRenderModels_FreeTexture(RenderModelTextureMap pTexture)

Frees a previously returned texture. It is safe to call this on a null ptr.

VRRenderModels_FreeTextureD3D11back to summary
public static void VRRenderModels_FreeTextureD3D11(long pD3D11Texture2D)

Use this to free textures created with LoadTextureD3D11_Async instead of calling Release on them.

VRRenderModels_GetComponentButtonMaskback to summary
public static long VRRenderModels_GetComponentButtonMask(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName)

Get the button mask for all buttons associated with this component.

If no buttons (or axes) are associated with this component, return 0

Note

multiple components may be associated with the same button. Ex: two grip buttons on a single controller.

Note

A single component may be associated with multiple buttons. Ex: A trackpad which also provides "D-pad" functionality

Annotations
@NativeType:uint64_t
VRRenderModels_GetComponentButtonMaskback to summary
public static long VRRenderModels_GetComponentButtonMask(CharSequence pchRenderModelName, CharSequence pchComponentName)

Get the button mask for all buttons associated with this component.

If no buttons (or axes) are associated with this component, return 0

Note

multiple components may be associated with the same button. Ex: two grip buttons on a single controller.

Note

A single component may be associated with multiple buttons. Ex: A trackpad which also provides "D-pad" functionality

Annotations
@NativeType:uint64_t
VRRenderModels_GetComponentCountback to summary
public static int VRRenderModels_GetComponentCount(ByteBuffer pchRenderModelName)

Returns the number of components of the specified render model.

Components are useful when client application wish to draw, label, or otherwise interact with components of tracked objects.

Annotations
@NativeType:uint32_t
VRRenderModels_GetComponentCountback to summary
public static int VRRenderModels_GetComponentCount(CharSequence pchRenderModelName)

Returns the number of components of the specified render model.

Components are useful when client application wish to draw, label, or otherwise interact with components of tracked objects.

Annotations
@NativeType:uint32_t
VRRenderModels_GetComponentNameback to summary
public static int VRRenderModels_GetComponentName(ByteBuffer pchRenderModelName, int unComponentIndex, ByteBuffer pchComponentName)

Use this to get the names of available components. Index does not correlate to a tracked device index, but is only used for iterating over all available components. If the index is out of range, this function will return 0. Otherwise, it will return the size of the buffer required for the name.

Annotations
@NativeType:uint32_t
VRRenderModels_GetComponentNameback to summary
public static int VRRenderModels_GetComponentName(CharSequence pchRenderModelName, int unComponentIndex, ByteBuffer pchComponentName)

Use this to get the names of available components. Index does not correlate to a tracked device index, but is only used for iterating over all available components. If the index is out of range, this function will return 0. Otherwise, it will return the size of the buffer required for the name.

Annotations
@NativeType:uint32_t
VRRenderModels_GetComponentNameback to summary
public static String VRRenderModels_GetComponentName(CharSequence pchRenderModelName, int unComponentIndex, int unComponentNameLen)

Use this to get the names of available components. Index does not correlate to a tracked device index, but is only used for iterating over all available components. If the index is out of range, this function will return 0. Otherwise, it will return the size of the buffer required for the name.

Annotations
@NativeType:uint32_t
VRRenderModels_GetComponentRenderModelNameback to summary
public static int VRRenderModels_GetComponentRenderModelName(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName, ByteBuffer pchComponentRenderModelName)

Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel_Async. If the component name is out of range, this function will return 0. Otherwise, it will return the size of the buffer required for the name.

Annotations
@NativeType:uint32_t
VRRenderModels_GetComponentRenderModelNameback to summary
public static int VRRenderModels_GetComponentRenderModelName(CharSequence pchRenderModelName, CharSequence pchComponentName, ByteBuffer pchComponentRenderModelName)

Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel_Async. If the component name is out of range, this function will return 0. Otherwise, it will return the size of the buffer required for the name.

Annotations
@NativeType:uint32_t
VRRenderModels_GetComponentRenderModelNameback to summary
public static String VRRenderModels_GetComponentRenderModelName(CharSequence pchRenderModelName, CharSequence pchComponentName, int unComponentRenderModelNameLen)

Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel_Async. If the component name is out of range, this function will return 0. Otherwise, it will return the size of the buffer required for the name.

Annotations
@NativeType:uint32_t
VRRenderModels_GetComponentStateback to summary
public static boolean VRRenderModels_GetComponentState(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName, VRControllerState pControllerState, RenderModelControllerModeState pState, RenderModelComponentState pComponentState)

This version of GetComponentState takes a controller state block instead of an action origin. This function is deprecated. You should use the new input system and GetComponentStateForDevicePath instead.

Annotations
@NativeType:bool
VRRenderModels_GetComponentStateback to summary
public static boolean VRRenderModels_GetComponentState(CharSequence pchRenderModelName, CharSequence pchComponentName, VRControllerState pControllerState, RenderModelControllerModeState pState, RenderModelComponentState pComponentState)

This version of GetComponentState takes a controller state block instead of an action origin. This function is deprecated. You should use the new input system and GetComponentStateForDevicePath instead.

Annotations
@NativeType:bool
VRRenderModels_GetComponentStateForDevicePathback to summary
public static boolean VRRenderModels_GetComponentStateForDevicePath(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName, long devicePath, RenderModelControllerModeState pState, RenderModelComponentState pComponentState)
Returns:boolean

if the pchRenderModelName or pchComponentName is invalid, this will return false (and transforms will be set to identity). Otherwise, return true Note: For dynamic objects, visibility may be dynamic. (I.e., true/false will be returned based on controller state and controller mode state).

Annotations
@NativeType:bool
VRRenderModels_GetComponentStateForDevicePathback to summary
public static boolean VRRenderModels_GetComponentStateForDevicePath(CharSequence pchRenderModelName, CharSequence pchComponentName, long devicePath, RenderModelControllerModeState pState, RenderModelComponentState pComponentState)
Returns:boolean

if the pchRenderModelName or pchComponentName is invalid, this will return false (and transforms will be set to identity). Otherwise, return true Note: For dynamic objects, visibility may be dynamic. (I.e., true/false will be returned based on controller state and controller mode state).

Annotations
@NativeType:bool
VRRenderModels_GetRenderModelCountback to summary
public static int VRRenderModels_GetRenderModelCount()

Returns the number of available render models.

Annotations
@NativeType:uint32_t
VRRenderModels_GetRenderModelErrorNameFromEnumback to summary
public static String VRRenderModels_GetRenderModelErrorNameFromEnum(int error)

Returns a string for a render model error.

Annotations
@Nullable
@NativeType:char const *
VRRenderModels_GetRenderModelNameback to summary
public static int VRRenderModels_GetRenderModelName(int unRenderModelIndex, ByteBuffer pchRenderModelName)

Use this to get the names of available render models. Index does not correlate to a tracked device index, but is only used for iterating over all available render models. If the index is out of range, this function will return 0. Otherwise, it will return the size of the buffer required for the name.

Annotations
@NativeType:uint32_t
VRRenderModels_GetRenderModelNameback to summary
public static String VRRenderModels_GetRenderModelName(int unRenderModelIndex, int unRenderModelNameLen)

Use this to get the names of available render models. Index does not correlate to a tracked device index, but is only used for iterating over all available render models. If the index is out of range, this function will return 0. Otherwise, it will return the size of the buffer required for the name.

Annotations
@NativeType:uint32_t
VRRenderModels_GetRenderModelOriginalPathback to summary
public static int VRRenderModels_GetRenderModelOriginalPath(ByteBuffer pchRenderModelName, ByteBuffer pchOriginalPath, IntBuffer peError)

Provides a render model path that will load the unskinned model if the model name provided has been replace by the user. If the model hasn't been replaced the path value will still be a valid path to load the model. Pass this to LoadRenderModel_Async, etc. to load the model.

Annotations
@NativeType:uint32_t
VRRenderModels_GetRenderModelOriginalPathback to summary
public static int VRRenderModels_GetRenderModelOriginalPath(CharSequence pchRenderModelName, ByteBuffer pchOriginalPath, IntBuffer peError)

Provides a render model path that will load the unskinned model if the model name provided has been replace by the user. If the model hasn't been replaced the path value will still be a valid path to load the model. Pass this to LoadRenderModel_Async, etc. to load the model.

Annotations
@NativeType:uint32_t
VRRenderModels_GetRenderModelOriginalPathback to summary
public static String VRRenderModels_GetRenderModelOriginalPath(CharSequence pchRenderModelName, int unOriginalPathLen, IntBuffer peError)

Provides a render model path that will load the unskinned model if the model name provided has been replace by the user. If the model hasn't been replaced the path value will still be a valid path to load the model. Pass this to LoadRenderModel_Async, etc. to load the model.

Annotations
@NativeType:uint32_t
VRRenderModels_GetRenderModelThumbnailURLback to summary
public static int VRRenderModels_GetRenderModelThumbnailURL(ByteBuffer pchRenderModelName, ByteBuffer pchThumbnailURL, IntBuffer peError)

Returns the URL of the thumbnail image for this rendermodel.

Annotations
@NativeType:uint32_t
VRRenderModels_GetRenderModelThumbnailURLback to summary
public static int VRRenderModels_GetRenderModelThumbnailURL(CharSequence pchRenderModelName, ByteBuffer pchThumbnailURL, IntBuffer peError)

Returns the URL of the thumbnail image for this rendermodel.

Annotations
@NativeType:uint32_t
VRRenderModels_GetRenderModelThumbnailURLback to summary
public static String VRRenderModels_GetRenderModelThumbnailURL(CharSequence pchRenderModelName, int unThumbnailURLLen, IntBuffer peError)

Returns the URL of the thumbnail image for this rendermodel.

Annotations
@NativeType:uint32_t
VRRenderModels_LoadIntoTextureD3D11_Asyncback to summary
public static int VRRenderModels_LoadIntoTextureD3D11_Async(int textureId, long pDstTexture)

Helper function to copy the bits into an existing texture.

Annotations
@NativeType:EVRRenderModelError
VRRenderModels_LoadRenderModel_Asyncback to summary
public static int VRRenderModels_LoadRenderModel_Async(ByteBuffer pchRenderModelName, PointerBuffer ppRenderModel)

Loads and returns a render model for use in the application. pchRenderModelName should be a render model name from the VR#ETrackedDeviceProperty_Prop_RenderModelName_String property or an absolute path name to a render model on disk.

The resulting render model is valid until ShutdownInternal is called or until FreeRenderModel is called. When the application is finished with the render model it should call FreeRenderModel to free the memory associated with the model.

Annotations
@NativeType:EVRRenderModelError
VRRenderModels_LoadRenderModel_Asyncback to summary
public static int VRRenderModels_LoadRenderModel_Async(CharSequence pchRenderModelName, PointerBuffer ppRenderModel)

Loads and returns a render model for use in the application. pchRenderModelName should be a render model name from the VR#ETrackedDeviceProperty_Prop_RenderModelName_String property or an absolute path name to a render model on disk.

The resulting render model is valid until ShutdownInternal is called or until FreeRenderModel is called. When the application is finished with the render model it should call FreeRenderModel to free the memory associated with the model.

Annotations
@NativeType:EVRRenderModelError
VRRenderModels_LoadTexture_Asyncback to summary
public static int VRRenderModels_LoadTexture_Async(int textureId, PointerBuffer ppTexture)

Loads and returns a texture for use in the application.

Annotations
@NativeType:EVRRenderModelError
VRRenderModels_LoadTextureD3D11_Asyncback to summary
public static int VRRenderModels_LoadTextureD3D11_Async(int textureId, long pD3D11Device, PointerBuffer ppD3D11Texture2D)

Creates a D3D11 texture and loads data into it.

Annotations
@NativeType:EVRRenderModelError
VRRenderModels_RenderModelHasComponentback to summary
public static boolean VRRenderModels_RenderModelHasComponent(ByteBuffer pchRenderModelName, ByteBuffer pchComponentName)

Returns true if the render model has a component with the specified name.

Annotations
@NativeType:bool
VRRenderModels_RenderModelHasComponentback to summary
public static boolean VRRenderModels_RenderModelHasComponent(CharSequence pchRenderModelName, CharSequence pchComponentName)

Returns true if the render model has a component with the specified name.

Annotations
@NativeType:bool