Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SwapChainGraphicsPresenter Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Graphics presenter for SwapChain.

    System.Object → DisposeBase → ComponentBase → GraphicsPresenter → SwapChainGraphicsPresenter
    Derived from SwapChainGraphicsPresenter:

    public class SwapChainGraphicsPresenter : GraphicsPresenter, IDisposable, IComponent, IReferencable, ICollectorHolder
    Name Description
    Constructors
    SwapChainGraphicsPresenter(GraphicsDevice, PresentationParameters)
    Properties
    BackBuffer
    IsFullScreen
    NativePresenter
    Methods
    BeginDraw(CommandList)
    EndDraw(CommandList, Boolean)
    OnDestroyed()
    OnNameChanged()
    OnRecreated()
    Present()
    ResizeBackBuffer(Int32, Int32, PixelFormat)
    ResizeDepthStencilBuffer(Int32, Int32, PixelFormat)
    | Improve this Doc View Source

    Constructors


    SwapChainGraphicsPresenter(GraphicsDevice, PresentationParameters)

    public SwapChainGraphicsPresenter(GraphicsDevice device, PresentationParameters presentationParameters)
    Parameters
    Type Name Description
    GraphicsDevice device
    PresentationParameters presentationParameters
    | Improve this Doc View Source

    Properties


    BackBuffer

    public override Texture BackBuffer { get; }
    Property Value
    Type Description
    Texture
    Overrides
    GraphicsPresenter.BackBuffer

    IsFullScreen

    public override bool IsFullScreen { get; set; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    GraphicsPresenter.IsFullScreen

    NativePresenter

    public override object NativePresenter { get; }
    Property Value
    Type Description
    System.Object
    Overrides
    GraphicsPresenter.NativePresenter
    | Improve this Doc View Source

    Methods


    BeginDraw(CommandList)

    public override void BeginDraw(CommandList commandList)
    Parameters
    Type Name Description
    CommandList commandList
    Overrides
    GraphicsPresenter.BeginDraw(CommandList)

    EndDraw(CommandList, Boolean)

    public override void EndDraw(CommandList commandList, bool present)
    Parameters
    Type Name Description
    CommandList commandList
    System.Boolean present
    Overrides
    GraphicsPresenter.EndDraw(CommandList, Boolean)

    OnDestroyed()

    protected override void OnDestroyed()
    Overrides
    GraphicsPresenter.OnDestroyed()

    OnNameChanged()

    protected override void OnNameChanged()
    Overrides
    ComponentBase.OnNameChanged()

    OnRecreated()

    public override void OnRecreated()
    Overrides
    GraphicsPresenter.OnRecreated()

    Present()

    public override void Present()
    Overrides
    GraphicsPresenter.Present()

    ResizeBackBuffer(Int32, Int32, PixelFormat)

    protected override void ResizeBackBuffer(int width, int height, PixelFormat format)
    Parameters
    Type Name Description
    System.Int32 width
    System.Int32 height
    PixelFormat format
    Overrides
    GraphicsPresenter.ResizeBackBuffer(Int32, Int32, PixelFormat)

    ResizeDepthStencilBuffer(Int32, Int32, PixelFormat)

    protected override void ResizeDepthStencilBuffer(int width, int height, PixelFormat format)
    Parameters
    Type Name Description
    System.Int32 width
    System.Int32 height
    PixelFormat format
    Overrides
    GraphicsPresenter.ResizeDepthStencilBuffer(Int32, Int32, PixelFormat)

    Inherited Members

    GraphicsPresenter.GraphicsDevice
    GraphicsPresenter.Description
    GraphicsPresenter.DepthStencilBuffer
    GraphicsPresenter.PresentInterval
    GraphicsPresenter.Resize(Int32, Int32, PixelFormat)
    GraphicsPresenter.ReleaseCurrentDepthStencilBuffer()
    GraphicsPresenter.Destroy()
    GraphicsPresenter.ProcessPresentationParameters()
    GraphicsPresenter.CreateDepthStencilBuffer()
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    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