Class TSpriteEngineEx

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSpriteEngineEx = class(TSpriteEngine)

Description

An extended spriteengine that is able to zoom in and to rotate the scene. Absolute screen coordinates can be transformed into spriteengine coordinates using the "ScreenPointToSpriteCoords" function.

Hierarchy

Overview

Methods

Public constructor Create(AParent:TAdDraw);
Public procedure Draw; override;
Public function ScreenPointToSpriteCoords(p:TAdPoint):TAdPoint;

Properties

Public property ViewPort: TAdRect read FViewPort write SetViewPort;
Public property Rotation: single read FRotation write SetRotation;
Public property Zoom: single read FZoom write SetZoom;

Description

Methods

Public constructor Create(AParent:TAdDraw);

Creates an instance of TSpriteEngineEx

Public procedure Draw; override;

Draws the scene

Public function ScreenPointToSpriteCoords(p:TAdPoint):TAdPoint;

Transforms screen coordinates to sprite coordinates.

Properties

Public property ViewPort: TAdRect read FViewPort write SetViewPort;

Set this property to limit the viewport of the current scene.

Public property Rotation: single read FRotation write SetRotation;

Use the rotation property to rotate the scene. The rotation must be given in radian measure.

Public property Zoom: single read FZoom write SetZoom;

The zoom value. A value of e.g. two means that all things are twice as big is in original size.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00