Class TGLBitmapFont
Unit
CastleGLBitmapFonts
Declaration
type TGLBitmapFont = class(TGLBitmapFontAbstract)
Description
OpenGL bitmap font. Uses a font description from CastleBitmapFonts unit (TBitmapFont type), and creates OpenGL resources to render text using this font.
This way we can use fonts embedded in our source code (as TBitmapFont type), independent from the fonts available in external files, operating system and such. Or we can load TBitmapFont from file.
See also TGLOutlineFont for a similar class for outline fonts.
Hierarchy
Overview
Methods
Description
Methods
 |
constructor Create(ABitmapFont: TBitmapFont); |
Create OpenGL resources to render given bitmap font.
We remember the pointer BitmapFont, without copying the contents. So do not free the BitmapFont contents, do not change it at all actually, during the lifetime of this object.
|
 |
destructor Destroy; override; |
|
 |
procedure PrintAndMove(const s: string); override; |
|
 |
function TextWidth(const s: string): integer; override; |
|
 |
function TextHeight(const s: string): integer; override; |
|
 |
function TextHeightBase(const s: string): integer; override; |
|
Generated by PasDoc 0.12.1 on 2013-02-04 20:26:50
|