Class GLSwapChain
The OpenGL implementation of a Swapchain object.
Implements
Inherited Members
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public class GLSwapChain : SwapChain, IDisposable
  Constructors
GLSwapChain(GraphicsContext, SwapChainDescription)
Initializes a new instance of the GLSwapChain class.
Declaration
public GLSwapChain(GraphicsContext context, SwapChainDescription description)
  Parameters
| Type | Name | Description | 
|---|---|---|
| GraphicsContext | context | The graphics context.  | 
      
| SwapChainDescription | description | The swapchain description.  | 
      
Fields
ColorTarget
The color target.
Declaration
protected GLPlaceHolderTexture ColorTarget
  Field Value
| Type | Description | 
|---|---|
| GLPlaceHolderTexture | 
DepthTarget
The depth target.
Declaration
protected GLPlaceHolderTexture DepthTarget
  Field Value
| Type | Description | 
|---|---|
| GLPlaceHolderTexture | 
Properties
Name
Gets or sets a string identifying this instance. Can be used in graphics debuggers tools.
Declaration
public override string Name { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
  Overrides
GetCurrentFramebufferTexture()
Gets the current Framebuffer Texture.
Declaration
public override Texture GetCurrentFramebufferTexture()
  Returns
| Type | Description | 
|---|---|
| Texture | Framebuffer texture.  | 
      
Overrides
Present()
Presents a rendered image to the user.
Declaration
public override void Present()
  Overrides
RefreshSurfaceInfo(SurfaceInfo)
The swapchain surface info has changed.
Declaration
public override void RefreshSurfaceInfo(SurfaceInfo surfaceInfo)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SurfaceInfo | surfaceInfo | The surface info.  | 
      
Overrides
ResizeSwapChain(uint, uint)
Resize SwapChain.
Declaration
public override void ResizeSwapChain(uint width, uint height)
  Parameters
| Type | Name | Description | 
|---|---|---|
| uint | width | New width.  | 
      
| uint | height | New height.  |