Class TAdSurface

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdSurface = class(TObject)

Description

TAdSurface is the abstract base class for all Andorra 2D surfaces. A surface represents a kind of virtual picture where drawing operations may target on. In fact, although many drawing operations require a "Surface" parameter, they are not bound to a specific surface, since they allways affect the active surface. A surface is activated by calling the "Activate" function. Graphic operations requiring a "Surface" parameter only call this activate function before performing graphic operations.

See also
TAdDraw
This is the main class for using Andorra 2D.
TAdScene
Simple class that copes with scene management.
TAdRenderingSurface
A basic, abstract surface class that extends TAdSurface and adds its own canvas and scene object.
TAdTextureSurface
A surface object that allows you to render your graphics in a texture.

Hierarchy

Overview

Methods

Public constructor Create(ADraw:TAdDraw); virtual;
Public procedure Activate;
Public procedure Deactivate;
Public function CanDraw:boolean; virtual; abstract;

Properties

Public property Activated: boolean read FActivated;
Public property Parent: TAdDraw read FDraw;

Description

Methods

Public constructor Create(ADraw:TAdDraw); virtual;

Creates an instance of TAdSurface and links itself to the TAdDraw object. Remember that TAdSurface is only an abstract class and so you should never create an instance of it directly. Use TAdTextureSurface or TAdDraw instead.

Public procedure Activate;

Activates the surface so that graphic operations will affect this surface from now on.

Public procedure Deactivate;

Deactivates the surface. This procedure is called automatically by the parent TAdDraw when another surface is activated.

Public function CanDraw:boolean; virtual; abstract;

Returns wheteher the surface is able to be activated and used.

Properties

Public property Activated: boolean read FActivated;

Indicates wheter the surface is currently activated or not.

Public property Parent: TAdDraw read FDraw;

Pointer on the parent AdDraw.

SourceForge.net Logo


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