Class TGLOutlineFontAbstract

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGLOutlineFontAbstract = class(TObject)

Description

Abstract class for all OpenGL outline fonts.

Hierarchy

  • TObject
  • TGLOutlineFontAbstract

Overview

Fields

Protected FRowHeight: single;

Methods

Public procedure Print(const s: string); virtual; abstract;
Public procedure PrintAndMove(const s: string); virtual; abstract;
Public function TextWidth(const s: string): single; virtual; abstract;
Public function TextHeight(const s: string): single; virtual; abstract;
Public function Descend: single; virtual;

Properties

Public property RowHeight: single read FRowHeight;

Description

Fields

Protected FRowHeight: single;
 

Methods

Public procedure Print(const s: string); virtual; abstract;

Draw text at position determined by the current OpenGL modelview matrix. In contrast to PrintAndMove, modelview matrix value is not changed.

May require 1 free slot on the attributes stack and on the modelview stack. May only be called when current matrix is modelview. Doesn't modify any OpenGL state or matrix.

Public procedure PrintAndMove(const s: string); virtual; abstract;

Draw text at position determined by the current OpenGL modelview matrix, and change modelview matrix to contain a transformation of the text end. This way you can immediately call another PrintAndMove again, to add something at the end.

May require 1 free slot on the attributes stack and on the modelview stack. May only be called when current matrix is modelview. Doesn't modify any OpenGL state or matrix, except it changes modelview matrix.

Public function TextWidth(const s: string): single; virtual; abstract;
 
Public function TextHeight(const s: string): single; virtual; abstract;
 
Public function Descend: single; virtual;

How low the text may go below the baseline. By default this returns TextHeight('y')-TextHeight('a'), which is suitable for normal fonts.

Properties

Public property RowHeight: single read FRowHeight;

Height of a row of text in this font. This may be calculated as simply TextHeight('Wy') for most normal fonts.


Generated by PasDoc 0.13.0 on 2014-08-30 12:10:35