Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    RenderTargetGraphicsPresenter Class

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

    Graphics presenter for SwapChain.

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

    public class RenderTargetGraphicsPresenter : GraphicsPresenter, IDisposable, IComponent, IReferencable, ICollectorHolder
    Name Description
    Constructors
    RenderTargetGraphicsPresenter(GraphicsDevice, Texture, PixelFormat)
    Properties
    BackBuffer
    IsFullScreen
    NativePresenter
    Methods
    Present()
    ResizeBackBuffer(Int32, Int32, PixelFormat)
    ResizeDepthStencilBuffer(Int32, Int32, PixelFormat)
    SetBackBuffer(Texture)

    Sets the back buffer.

    | Improve this Doc View Source

    Constructors


    RenderTargetGraphicsPresenter(GraphicsDevice, Texture, PixelFormat)

    public RenderTargetGraphicsPresenter(GraphicsDevice device, Texture renderTarget, PixelFormat depthFormat = PixelFormat.None)
    Parameters
    Type Name Description
    GraphicsDevice device
    Texture renderTarget
    PixelFormat depthFormat
    | 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


    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)

    SetBackBuffer(Texture)

    Sets the back buffer.

    public void SetBackBuffer(Texture backBuffer)
    Parameters
    Type Name Description
    Texture backBuffer

    The back buffer.


    Inherited Members

    GraphicsPresenter.GraphicsDevice
    GraphicsPresenter.Description
    GraphicsPresenter.DepthStencilBuffer
    GraphicsPresenter.PresentInterval
    GraphicsPresenter.BeginDraw(CommandList)
    GraphicsPresenter.EndDraw(CommandList, Boolean)
    GraphicsPresenter.Resize(Int32, Int32, PixelFormat)
    GraphicsPresenter.ReleaseCurrentDepthStencilBuffer()
    GraphicsPresenter.Destroy()
    GraphicsPresenter.OnDestroyed()
    GraphicsPresenter.OnRecreated()
    GraphicsPresenter.ProcessPresentationParameters()
    GraphicsPresenter.CreateDepthStencilBuffer()
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    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