Class SwapChain
SwapChain instance.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class SwapChain : IDisposable
Fields
GraphicsContext
The device context refenrece.
Declaration
public GraphicsContext GraphicsContext
Field Value
Type | Description |
---|---|
GraphicsContext |
disposed
Holds if the instance has been disposed.
Declaration
protected bool disposed
Field Value
Type | Description |
---|---|
bool |
Properties
FrameBuffer
Gets or sets the swapchain Framebuffer.
Declaration
public FrameBuffer FrameBuffer { get; protected set; }
Property Value
Type | Description |
---|---|
FrameBuffer |
Name
Gets or sets a string identifying this instance. Can be used in graphics debuggers tools.
Declaration
public abstract string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
NativeSwapChainPointer
Gets the native SwapChain pointer. Default value is returned if the platform does not support it.
Declaration
public virtual IntPtr NativeSwapChainPointer { get; }
Property Value
Type | Description |
---|---|
IntPtr |
SwapChainDescription
Gets or sets the SwapChain description.
Declaration
public SwapChainDescription SwapChainDescription { get; protected set; }
Property Value
Type | Description |
---|---|
SwapChainDescription |
VerticalSync
Gets or sets a value indicating whether vertical synchronization is enable or not.
Declaration
public virtual bool VerticalSync { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public abstract void Dispose()
GetCurrentFramebufferTexture()
Gets the current Framebuffer Texture.
Declaration
public abstract Texture GetCurrentFramebufferTexture()
Returns
Type | Description |
---|---|
Texture | Framebuffer texture. |
Present()
Presents a rendered image to the user.
Declaration
public abstract void Present()
RefreshSurfaceInfo(SurfaceInfo)
The swapchain surface info has changed.
Declaration
public abstract void RefreshSurfaceInfo(SurfaceInfo surfaceInfo)
Parameters
Type | Name | Description |
---|---|---|
SurfaceInfo | surfaceInfo | The surface info. |
ResizeSwapChain(uint, uint)
Resize SwapChain.
Declaration
public abstract void ResizeSwapChain(uint width, uint height)
Parameters
Type | Name | Description |
---|---|---|
uint | width | New width. |
uint | height | New height. |