Class TCustomDrawableTexture

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomDrawableTexture = class abstract(TCustomBaseTexture)

Description

Base definition of "drawable" texture; that is, a texture that can be drawn to. Typically, this means that the texture is a render target or render buffer.

Hierarchy

Overview

Fields

Protected FDepthStencil: TDepthStencil;
Protected FMultisamples: Integer;

Methods

Public function BeginDraw: Boolean; virtual; abstract;
Public procedure EndDraw; virtual; abstract;

Properties

Public property DepthStencil: TDepthStencil read FDepthStencil write SetDepthStencil;
Public property Multisamples: Integer read FMultisamples write SetMultisamples;

Description

Fields

Protected FDepthStencil: TDepthStencil;

Currently set level of depth/stencil support.

Protected FMultisamples: Integer;

The number of multisamples that is currently selected.

Methods

Public function BeginDraw: Boolean; virtual; abstract;

Activates this texture as destination rendering surface, after which normal rendering calls would draw directly on this texture's surface. This should be implemented by derived classes to implement the appropriate functionality depending on provider and platform.

Public procedure EndDraw; virtual; abstract;

Deactivates this texture as destination rendering surface and updates its contents to reflect what has been drawn. This should be implemented by derived classes to implement the appropriate functionality depending on provider and platform.

Properties

Public property DepthStencil: TDepthStencil read FDepthStencil write SetDepthStencil;

The required level of depth/stencil support that should be provided. This can be written to only before the texture is initialized, but can be read at any time.

Public property Multisamples: Integer read FMultisamples write SetMultisamples;

The required number of multisamples that should be used for rendering. This is merely a hint and the actual number of multisamples that is being used can be overwritten when the texture is initialized. This property can be written to only before the texture is initialized, but can be read at any time.


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