Class GorgonSwapChainInfo
Settings for defining the set up for a swap chain.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonSwapChainInfo : IGorgonSwapChainInfo, IGorgonNamedObject
Constructors
| Edit this page View SourceGorgonSwapChainInfo(IGorgonSwapChainInfo, string)
Initializes a new instance of the GorgonSwapChainInfo class.
Declaration
public GorgonSwapChainInfo(IGorgonSwapChainInfo info, string newName = null)
Parameters
Type | Name | Description |
---|---|---|
IGorgonSwapChainInfo | info | A IGorgonSwapChainInfo to copy the settings from. |
string | newName | [Optional] A new name for the swap chain. |
GorgonSwapChainInfo(int, int, BufferFormat)
Initializes a new instance of the GorgonSwapChainInfo class.
Declaration
public GorgonSwapChainInfo(int width, int height, BufferFormat format)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width. |
int | height | The height. |
BufferFormat | format | The format. |
Properties
| Edit this page View SourceFormat
Property to return the format of the swap chain back buffer.
Declaration
public BufferFormat Format { get; set; }
Property Value
Type | Description |
---|---|
BufferFormat |
Height
Property to return the height of the swap chain back buffer.
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
Property to return the name of the swap chain.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
StretchBackBuffer
Property to return whether the back buffer contents will be stretched to fit the size of the presentation target area (typically the client area of the window).
Declaration
public bool StretchBackBuffer { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseFlipMode
Property to return whether to use flip mode rather than a bitblt mode to present the back buffer to the presentation target.
Declaration
public bool UseFlipMode { get; set; }
Property Value
Type | Description |
---|---|
bool |
Width
Property to return the width of the swap chain back buffer.
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
int |