CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TBaseBitmapFont

Unit

BaseGraph

Declaration

type TBaseBitmapFont = class(TFont)

Description

Base class for bitmap (texture) based font

Hierarchy

TFont > TItem > TBaseItem

Fields

 NameDescription
PublicBitmapBitmap data pointer
PublicBitmapFormatFormat of the bitmap (texture)
PublicCharMapCode to character map
PublicTotalCharactersTotal characters
PublicTotalUVsNumber of entries in the UV map
PublicUVMapUV map which points to character images on the texture
PublicXScaleScale of the font by X
PublicYScaleScale of the font by Y

Methods

Overview

Publicconstructor Create(AManager: BaseClasses.TItemsManager); override;
Publicprocedure GetTextExtent(const Text: string; out Width, Height: Single); override;
Publicprocedure SetMapResources(const AUVMap: BaseTypes.TUVMap; ATotalUVs: Integer; const ACharMap: BaseTypes.TCharMap; ATotalCharacters: Integer); virtual;
Publicprocedure SetScale(AXScale, AYScale: Single); virtual;

Description

Publicconstructor Create(AManager: BaseClasses.TItemsManager); override;

 

Publicprocedure GetTextExtent(const Text: string; out Width, Height: Single); override;

 

Publicprocedure SetMapResources(const AUVMap: BaseTypes.TUVMap; ATotalUVs: Integer; const ACharMap: BaseTypes.TCharMap; ATotalCharacters: Integer); virtual;

Sets UV and character maps

Publicprocedure SetScale(AXScale, AYScale: Single); virtual;

Sets scale

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com