Search Results for

    Show / Hide Table of Contents

    Class WebXRWindowsSystem

    WebXR windows system.

    Inheritance
    object
    WindowsSystem
    WebWindowsSystem
    WebXRWindowsSystem
    Implements
    IGetNativePointers
    Inherited Members
    WebWindowsSystem.CreateSurface(uint, uint)
    WebWindowsSystem.CreateSurface(object)
    WebWindowsSystem.CreateWindow(string, uint, uint, bool)
    WebWindowsSystem.Destroy()
    WindowsSystem.AvailablePointerKeys
    WindowsSystem.Run(Action, Action)
    WindowsSystem.Dispose()
    WindowsSystem.GetNativePointer(string, out nint)
    Namespace: Evergine.WebXR
    Assembly: Evergine.WebXR.dll
    Syntax
    public class WebXRWindowsSystem : WebWindowsSystem, IGetNativePointers

    Constructors

    WebXRWindowsSystem(GraphicsBackend)

    Initializes a new instance of the WebXRWindowsSystem class.

    Declaration
    public WebXRWindowsSystem(GraphicsBackend graphicsBackend = GraphicsBackend.WebGL2)
    Parameters
    Type Name Description
    GraphicsBackend graphicsBackend

    WebGL backend. Only WebGL2 supported.

    Methods

    CreateLoopThread(Action, Action)

    Creates a looping thread.

    Declaration
    protected override void CreateLoopThread(Action loadAction, Action renderCallback)
    Parameters
    Type Name Description
    Action loadAction

    The loading action.

    Action renderCallback

    The rendering callback action.

    Overrides
    WebWindowsSystem.CreateLoopThread(Action, Action)

    EnterImmersive(string, string, string)

    Enter into XR inmmersive mode.

    Declaration
    public Task EnterImmersive(string immersiveMode, string canvas, string overlayId)
    Parameters
    Type Name Description
    string immersiveMode

    The mode. Only AR supported.

    string canvas

    Canvas id.

    string overlayId

    Overlay layer id.

    Returns
    Type Description
    Task

    Task that initiates the immersive mode.

    ExitImmersive()

    Exists the current immersive mode.

    Declaration
    public void ExitImmersive()

    Implements

    IGetNativePointers

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX