Class TAdCustomTexture

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdCustomTexture = class(TObject)

Description

TAdCustomTexture is the base, abstract texture class. Descendants of TAdCustomTexture specify which type of texture this texture class contains. This can either be a bitmap texture or a render target texture. Don't use this class directly, use TAdTexture or TAdRenderTargetTexture instead. TAdCustomTexture can be assigned to many different graphic interfaces like TAdCustomImage, TAdMesh or TAdShader.

See also
TAdTexture
TAdTexture extends TAdCustomTexture and contains a bitmap texture.
TAdRenderTargetTexture
TAdRenderTargetTexture extends TAdCustomTexture.
TAdCustomImage
TAdCustomImage is the base image class.

Hierarchy

Overview

Methods

Public constructor Create(AParent:TAdDraw); virtual;
Public destructor Destroy; override;
Public procedure Initialize; virtual; abstract;
Public procedure Finalize; virtual; abstract;
Public procedure Clear; virtual; abstract;

Properties

Public property Texture: TAd2dTexture read FAd2DTexture write SetAd2DTexture;
Public property Initialized: boolean read GetInitialized;
Public property BitDepth: TAdBitDepth read GetBitDepth write SetBitDepth;
Public property Parent: TAdDraw read FParent;
Public property Filter: TAd2dTextureFilter read FFilter write SetFilter;

Description

Methods

Public constructor Create(AParent:TAdDraw); virtual;

Creates a new instance of TAdCustomTexture. You shouldn't create an instance of this abstract class directly. Use TAdTexture or TAdRenderTargetTexture instead.

Parameters
AParent
specifies the parent TAdDraw
Public destructor Destroy; override;

Destroys the instance of this class and destroys all texture data.

Public procedure Initialize; virtual; abstract;

Initializes a new texture object.

Public procedure Finalize; virtual; abstract;

Destroys the created texture object.

Public procedure Clear; virtual; abstract;

Removes the texture from the memory.

Properties

Public property Texture: TAd2dTexture read FAd2DTexture write SetAd2DTexture;

Provides access on the Andorra 2D graphic plugin internal texture class.

Public property Initialized: boolean read GetInitialized;

Returns whether the texture is currently initialized. If true, a texture object is created.

Public property BitDepth: TAdBitDepth read GetBitDepth write SetBitDepth;

Use this property to read and set the bit depth of the texture. If you set this property, this bit depth will be used when a texture is loaded the next time. When reading this property and a texture is loaded, the bitdepth of the currently loaded texture will be returned.

Public property Parent: TAdDraw read FParent;

The parent TAdDraw you've set in the constructor.

Public property Filter: TAd2dTextureFilter read FFilter write SetFilter;

The filter that is applied to the texture and will be used when drawing it.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59