Show / Hide Table of Contents

    Class CVRRenderModels

    Inheritance
    System.Object
    CVRRenderModels
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Valve.VR
    Assembly: Assembly-CSharp.dll
    Syntax
    public class CVRRenderModels

    Methods

    FreeRenderModel(IntPtr)

    Declaration
    public void FreeRenderModel(IntPtr pRenderModel)
    Parameters
    Type Name Description
    System.IntPtr pRenderModel

    FreeTexture(IntPtr)

    Declaration
    public void FreeTexture(IntPtr pTexture)
    Parameters
    Type Name Description
    System.IntPtr pTexture

    FreeTextureD3D11(IntPtr)

    Declaration
    public void FreeTextureD3D11(IntPtr pD3D11Texture2D)
    Parameters
    Type Name Description
    System.IntPtr pD3D11Texture2D

    GetComponentButtonMask(String, String)

    Declaration
    public ulong GetComponentButtonMask(string pchRenderModelName, string pchComponentName)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.String pchComponentName
    Returns
    Type Description
    System.UInt64

    GetComponentCount(String)

    Declaration
    public uint GetComponentCount(string pchRenderModelName)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    Returns
    Type Description
    System.UInt32

    GetComponentName(String, UInt32, StringBuilder, UInt32)

    Declaration
    public uint GetComponentName(string pchRenderModelName, uint unComponentIndex, StringBuilder pchComponentName, uint unComponentNameLen)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.UInt32 unComponentIndex
    System.Text.StringBuilder pchComponentName
    System.UInt32 unComponentNameLen
    Returns
    Type Description
    System.UInt32

    GetComponentRenderModelName(String, String, StringBuilder, UInt32)

    Declaration
    public uint GetComponentRenderModelName(string pchRenderModelName, string pchComponentName, StringBuilder pchComponentRenderModelName, uint unComponentRenderModelNameLen)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.String pchComponentName
    System.Text.StringBuilder pchComponentRenderModelName
    System.UInt32 unComponentRenderModelNameLen
    Returns
    Type Description
    System.UInt32

    GetComponentState(String, String, ref VRControllerState_t, ref RenderModel_ControllerMode_State_t, ref RenderModel_ComponentState_t)

    Declaration
    public bool GetComponentState(string pchRenderModelName, string pchComponentName, ref VRControllerState_t pControllerState, ref RenderModel_ControllerMode_State_t pState, ref RenderModel_ComponentState_t pComponentState)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.String pchComponentName
    VRControllerState_t pControllerState
    RenderModel_ControllerMode_State_t pState
    RenderModel_ComponentState_t pComponentState
    Returns
    Type Description
    System.Boolean

    GetComponentStateForDevicePath(String, String, UInt64, ref RenderModel_ControllerMode_State_t, ref RenderModel_ComponentState_t)

    Declaration
    public bool GetComponentStateForDevicePath(string pchRenderModelName, string pchComponentName, ulong devicePath, ref RenderModel_ControllerMode_State_t pState, ref RenderModel_ComponentState_t pComponentState)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.String pchComponentName
    System.UInt64 devicePath
    RenderModel_ControllerMode_State_t pState
    RenderModel_ComponentState_t pComponentState
    Returns
    Type Description
    System.Boolean

    GetRenderModelCount()

    Declaration
    public uint GetRenderModelCount()
    Returns
    Type Description
    System.UInt32

    GetRenderModelErrorNameFromEnum(EVRRenderModelError)

    Declaration
    public string GetRenderModelErrorNameFromEnum(EVRRenderModelError error)
    Parameters
    Type Name Description
    EVRRenderModelError error
    Returns
    Type Description
    System.String

    GetRenderModelName(UInt32, StringBuilder, UInt32)

    Declaration
    public uint GetRenderModelName(uint unRenderModelIndex, StringBuilder pchRenderModelName, uint unRenderModelNameLen)
    Parameters
    Type Name Description
    System.UInt32 unRenderModelIndex
    System.Text.StringBuilder pchRenderModelName
    System.UInt32 unRenderModelNameLen
    Returns
    Type Description
    System.UInt32

    GetRenderModelOriginalPath(String, StringBuilder, UInt32, ref EVRRenderModelError)

    Declaration
    public uint GetRenderModelOriginalPath(string pchRenderModelName, StringBuilder pchOriginalPath, uint unOriginalPathLen, ref EVRRenderModelError peError)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.Text.StringBuilder pchOriginalPath
    System.UInt32 unOriginalPathLen
    EVRRenderModelError peError
    Returns
    Type Description
    System.UInt32

    GetRenderModelThumbnailURL(String, StringBuilder, UInt32, ref EVRRenderModelError)

    Declaration
    public uint GetRenderModelThumbnailURL(string pchRenderModelName, StringBuilder pchThumbnailURL, uint unThumbnailURLLen, ref EVRRenderModelError peError)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.Text.StringBuilder pchThumbnailURL
    System.UInt32 unThumbnailURLLen
    EVRRenderModelError peError
    Returns
    Type Description
    System.UInt32

    LoadIntoTextureD3D11_Async(Int32, IntPtr)

    Declaration
    public EVRRenderModelError LoadIntoTextureD3D11_Async(int textureId, IntPtr pDstTexture)
    Parameters
    Type Name Description
    System.Int32 textureId
    System.IntPtr pDstTexture
    Returns
    Type Description
    EVRRenderModelError

    LoadRenderModel_Async(String, ref IntPtr)

    Declaration
    public EVRRenderModelError LoadRenderModel_Async(string pchRenderModelName, ref IntPtr ppRenderModel)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.IntPtr ppRenderModel
    Returns
    Type Description
    EVRRenderModelError

    LoadTexture_Async(Int32, ref IntPtr)

    Declaration
    public EVRRenderModelError LoadTexture_Async(int textureId, ref IntPtr ppTexture)
    Parameters
    Type Name Description
    System.Int32 textureId
    System.IntPtr ppTexture
    Returns
    Type Description
    EVRRenderModelError

    LoadTextureD3D11_Async(Int32, IntPtr, ref IntPtr)

    Declaration
    public EVRRenderModelError LoadTextureD3D11_Async(int textureId, IntPtr pD3D11Device, ref IntPtr ppD3D11Texture2D)
    Parameters
    Type Name Description
    System.Int32 textureId
    System.IntPtr pD3D11Device
    System.IntPtr ppD3D11Texture2D
    Returns
    Type Description
    EVRRenderModelError

    RenderModelHasComponent(String, String)

    Declaration
    public bool RenderModelHasComponent(string pchRenderModelName, string pchComponentName)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.String pchComponentName
    Returns
    Type Description
    System.Boolean
    In This Article
    • Methods
      • FreeRenderModel(IntPtr)
      • FreeTexture(IntPtr)
      • FreeTextureD3D11(IntPtr)
      • GetComponentButtonMask(String, String)
      • GetComponentCount(String)
      • GetComponentName(String, UInt32, StringBuilder, UInt32)
      • GetComponentRenderModelName(String, String, StringBuilder, UInt32)
      • GetComponentState(String, String, ref VRControllerState_t, ref RenderModel_ControllerMode_State_t, ref RenderModel_ComponentState_t)
      • GetComponentStateForDevicePath(String, String, UInt64, ref RenderModel_ControllerMode_State_t, ref RenderModel_ComponentState_t)
      • GetRenderModelCount()
      • GetRenderModelErrorNameFromEnum(EVRRenderModelError)
      • GetRenderModelName(UInt32, StringBuilder, UInt32)
      • GetRenderModelOriginalPath(String, StringBuilder, UInt32, ref EVRRenderModelError)
      • GetRenderModelThumbnailURL(String, StringBuilder, UInt32, ref EVRRenderModelError)
      • LoadIntoTextureD3D11_Async(Int32, IntPtr)
      • LoadRenderModel_Async(String, ref IntPtr)
      • LoadTexture_Async(Int32, ref IntPtr)
      • LoadTextureD3D11_Async(Int32, IntPtr, ref IntPtr)
      • RenderModelHasComponent(String, String)
    Back to top Copyright (c) Valve Corporation, All rights reserved.