Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    CVRRenderModels Class

    Namespace: Valve.VR
    Assembly: Stride.VirtualReality.dll
    System.Object → CVRRenderModels
    Derived from CVRRenderModels:

    public class CVRRenderModels
    Name Description
    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)
    | Improve this Doc View Source

    Methods


    FreeRenderModel(IntPtr)

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

    FreeTexture(IntPtr)

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

    FreeTextureD3D11(IntPtr)

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

    GetComponentButtonMask(String, String)

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

    GetComponentCount(String)

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

    GetComponentName(String, UInt32, StringBuilder, UInt32)

    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)

    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)

    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)

    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()

    public uint GetRenderModelCount()
    Returns
    Type Description
    System.UInt32

    GetRenderModelErrorNameFromEnum(EVRRenderModelError)

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

    GetRenderModelName(UInt32, StringBuilder, UInt32)

    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)

    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)

    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)

    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)

    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)

    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)

    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)

    public bool RenderModelHasComponent(string pchRenderModelName, string pchComponentName)
    Parameters
    Type Name Description
    System.String pchRenderModelName
    System.String pchComponentName
    Returns
    Type Description
    System.Boolean

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation