Tesla Graphics Engine Documentation (January 2012)
SwapChain Class
TeslaTesla.GraphicsSwapChain
SwapChain represents the back/front buffers that the scene is rendered to. The back buffer accumulates the rendered primitives and is presented to the window that is being rendered to (e.g. swapped with the front buffer).
Declaration Syntax
C#
public class SwapChain : GraphicsResource
Members
All Members Constructors Methods Properties



Icon Member Description
SwapChain(IntPtr, PresentationParameters)
Creates a new instance of SwapChain.

SwapChain(IRenderSystemProvider, IntPtr, PresentationParameters)
Creates a new instance of SwapChain.

Clear(Color)
Clears everything (Target, Depth, and Stencil) using the default values for depth (1.0f) and stencil (0.0f).

Clear(ClearOptions, Color, Single, Int32)
Clears the back buffer.

CurrentDisplayMode
Gets the current display mode of the swap chain.

Dispose()()()()
Dispose the resource.
(Inherited from GraphicsResource.)
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Inherited from GraphicsResource.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Releases unmanaged resources and performs other cleanup operations before the SwapChain is reclaimed by garbage collection.
(Overrides GraphicsResource.Finalize()()()().)
GetBackBufferData<(Of <<'(T>)>>)(array<T>[]()[][])
Gets the backbuffer as an array of data.

GetBackBufferData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32)
Gets the backbuffer as an array of data.

GetBackBufferData<(Of <<'(T>)>>)(Nullable<(Of <<'(Rectangle>)>>), array<T>[]()[][], Int32, Int32)
Gets the backbuffer as an array of data.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Implementation
Gets the API-specific implementation of this resource.
(Overrides GraphicsResource.Implementation.)
IsDisposed
Gets if the resource's implementation has been disposed.
(Inherited from GraphicsResource.)
IsFullScreen
Gets if the swap chain is in full screen mode or not. By default, swap chains are not in full screen.

IsWideScreen
Gets if the current display mode is in wide screen or not.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MonitorHandle
Gets the handle to the monitor that contains the majority of the output.

Name
Get or sets the name of this resource.
(Inherited from GraphicsResource.)
Present()()()()
Presents the contents of the back buffer to the screen, and flips the front/back buffers.

PresentationParameters
Gets the presentation parameters the swap chain is set to.

RenderSystem
Gets or protected sets the render system that created this resource.
(Inherited from GraphicsResource.)
Reset(IntPtr, PresentationParameters)
Resets the swapchain.

Resize(Int32, Int32)
Resizes the backbuffer.

ResourceID
Gets or sets the ResourceID of this resource. Can only be set once, usually by the renderer.
(Inherited from GraphicsResource.)
ToggleFullScreen()()()()
Toggles the swap chain to full screen mode.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
WindowHandle
Gets the window handle the swap chain is bound to.

Inheritance Hierarchy
Object
GraphicsResource
  SwapChain

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)