Class GLSwapChainFrameBuffer
The OpenGL implementation of a swapchain framebuffer object.
Inherited Members
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public class GLSwapChainFrameBuffer : FrameBuffer, ILoadable, IDisposable, IDependencyObject
Constructors
GLSwapChainFrameBuffer(GraphicsContext, FrameBufferAttachment?, FrameBufferAttachment[], bool)
Initializes a new instance of the GLSwapChainFrameBuffer class.
Declaration
public GLSwapChainFrameBuffer(GraphicsContext context, FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | context | The GL graphic context. |
FrameBufferAttachment? | depthTarget | The depth texture which must have been created with DepthStencil flag. |
FrameBufferAttachment[] | colorTargets | The array of color textures, all of which must have been created with RenderTarget flags. |
bool | disposeAttachments | When this framebuffer is disposed, dispose the attachment textures too. |
Properties
GLColorTargets
Gets the ColorTarget OpenGL texture array.
Declaration
public GLPlaceHolderTexture[] GLColorTargets { get; }
Property Value
Type | Description |
---|---|
GLPlaceHolderTexture[] |
GLDepthStencilTarget
Gets the DepthStencil OpenGL texture.
Declaration
public GLPlaceHolderTexture GLDepthStencilTarget { get; }
Property Value
Type | Description |
---|---|
GLPlaceHolderTexture |
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
RequireFlipProjection
Gets or sets a value indicating whether this FrameBuffer requires the projection matrix to be flipped. By default they will indicate the default flip behavior, but the user can change it.
Declaration
public override bool RequireFlipProjection { get; }
Property Value
Type | Description |
---|---|
bool |