Class TAdTextureSurface

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdTextureSurface = class(TAdRenderingSurface)

Description

A surface object that allows you to render your graphics in a texture.

Hierarchy

Overview

Methods

Public constructor Create(ADraw:TAdDraw); override;
Public destructor Destroy; override;
Public procedure SetSize(AWidth, AHeight: integer);
Public function CanDraw:boolean; override;

Properties

Public property Image: TAdCustomImage read FImage;
Public property Texture: TAdRenderTargetTexture read FTexture;

Description

Methods

Public constructor Create(ADraw:TAdDraw); override;

Creates an instance of TAdTextureSurface.

Public destructor Destroy; override;

Destroys the instance of TAdTextureSurface

Public procedure SetSize(AWidth, AHeight: integer);

Sets the size of the surface to a new value. Normally the surface has a size of 128x128 pixels.

Public function CanDraw:boolean; override;

Returns whether graphic operations can be performed on the surface.

Properties

Public property Image: TAdCustomImage read FImage;

Image object that can be used to draw the texture directly on another surface.

Public property Texture: TAdRenderTargetTexture read FTexture;

Pointer on the texture, that contains the scene surface.

SourceForge.net Logo


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