Gorgon
Show / Hide Table of Contents

Class GorgonSwapChainInfo

Settings for defining the set up for a swap chain.

Inheritance
object
GorgonSwapChainInfo
Implements
IGorgonSwapChainInfo
IGorgonNamedObject
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonSwapChainInfo : IGorgonSwapChainInfo, IGorgonNamedObject

Constructors

| Edit this page View Source

GorgonSwapChainInfo(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.

| Edit this page View Source

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 Source

Format

Property to return the format of the swap chain back buffer.

Declaration
public BufferFormat Format { get; set; }
Property Value
Type Description
BufferFormat
| Edit this page View Source

Height

Property to return the height of the swap chain back buffer.

Declaration
public int Height { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Name

Property to return the name of the swap chain.

Declaration
public string Name { get; set; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

Width

Property to return the width of the swap chain back buffer.

Declaration
public int Width { get; set; }
Property Value
Type Description
int

Implements

IGorgonSwapChainInfo
IGorgonNamedObject

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author