Description | Hierarchy | Fields | Methods | Properties |
type TAdCustomTexture = class(TObject)
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.
constructor Create(AParent:TAdDraw); virtual; |
|
destructor Destroy; override; |
|
procedure Initialize; virtual; abstract; |
|
procedure Finalize; virtual; abstract; |
|
procedure Clear; virtual; abstract; |
property Texture: TAd2dTexture read FAd2DTexture write SetAd2DTexture; |
|
property Initialized: boolean read GetInitialized; |
|
property BitDepth: TAdBitDepth read GetBitDepth write SetBitDepth; |
|
property Parent: TAdDraw read FParent; |
|
property Filter: TAd2dTextureFilter read FFilter write SetFilter; |
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
|
destructor Destroy; override; |
|
Destroys the instance of this class and destroys all texture data. |
procedure Initialize; virtual; abstract; |
|
Initializes a new texture object. |
procedure Finalize; virtual; abstract; |
|
Destroys the created texture object. |
procedure Clear; virtual; abstract; |
|
Removes the texture from the memory. |
property Texture: TAd2dTexture read FAd2DTexture write SetAd2DTexture; |
|
Provides access on the Andorra 2D graphic plugin internal texture class. |
property Initialized: boolean read GetInitialized; |
|
Returns whether the texture is currently initialized. If true, a texture object is created. |
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. |
property Parent: TAdDraw read FParent; |
|
The parent TAdDraw you've set in the constructor. |
property Filter: TAd2dTextureFilter read FFilter write SetFilter; |
|
The filter that is applied to the texture and will be used when drawing it. |