Class TSwapChains

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSwapChains = class(TObject)

Description

List of all rendering swap chains that are to be used with Asphyre device. This class describes all swap chains that should be created and used with the device; if the device is already initialized, modifying swap chains is not allowed.

Hierarchy

  • TObject
  • TSwapChains

Overview

Methods

Public function Add(const Desc: TSwapChainInfo): Integer; overload;
Public function Add(const WindowHandle: TUntypedHandle; const Size: TPoint2i; const Multisamples: Integer = 0; const VSync: Boolean = False; const Format: TPixelFormat = TPixelFormat.Unknown; const DepthStencil: TDepthStencil = TDepthStencil.None): Integer; overload;
Public function Insert: Integer;
Public procedure Clear;
Public procedure Remove(const Index: Integer);

Properties

Public property Count: Integer read GetCount;
Public property Device: TCustomDevice read FDevice;
Public property Items[constIndex:Integer]: PSwapChainInfo read GetItem;

Description

Methods

Public function Add(const Desc: TSwapChainInfo): Integer; overload;

Adds a new rendering swap chain specified in the given structure to the end of list and returns its index.

Public function Add(const WindowHandle: TUntypedHandle; const Size: TPoint2i; const Multisamples: Integer = 0; const VSync: Boolean = False; const Format: TPixelFormat = TPixelFormat.Unknown; const DepthStencil: TDepthStencil = TDepthStencil.None): Integer; overload;

Adds a new rendering swap chain with the specified parameters to the end of list and returns its index.

Public function Insert: Integer;

Inserts a new swap chain to the end of list and returns its index.

Public procedure Clear;

Removes all rendering swap chains from the list.

Public procedure Remove(const Index: Integer);

Removes the swap at the specified index from the list, shifting all elements by one. The index should be in range of [0..(Count - 1)] range; if it is outside of valid range, this function does nothing.

Properties

Public property Count: Integer read GetCount;

Number of swap chains in the list.

Public property Device: TCustomDevice read FDevice;

The pointer to a valid graphics device which owns this list of rendering swap chains.

Public property Items[constIndex:Integer]: PSwapChainInfo read GetItem;

Provides access to each of the rendering swap chains in the list by index, which should be in range of [0..(Count - 1)] range. If the index is outside of valid range, Nil is returned.


Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.