Etermal
Embeddable Terminal and shell for OpenGL
Public Types | Public Member Functions | List of all members
etm::EtmFont Class Referenceabstract

Interface for all etermal fonts. More...

#include <EtmFont.h>

Inheritance diagram for etm::EtmFont:
etm::BmpFont etm::Font

Public Types

typedef unsigned int char_t
 Codepoint type.
 

Public Member Functions

virtual void setResMan (Resources *res)=0
 
virtual void setSize (unsigned int size)=0
 Set the pixel size of the font. More...
 
virtual void bindChar (char_t c)=0
 Binds the given codepoint's texture to the currently active OpenGL texture slot. More...
 
virtual void clearCache ()=0
 Clears the codepoint texture cache.
 
virtual int getCharWidth ()=0
 Gets the width of each codepoint. More...
 
virtual int getCharHeight ()=0
 Gets the height of each codepoint. More...
 

Detailed Description

Interface for all etermal fonts.

See also
Font
BmpFont

Member Function Documentation

◆ bindChar()

virtual void etm::EtmFont::bindChar ( char_t  c)
pure virtual

Binds the given codepoint's texture to the currently active OpenGL texture slot.

Parameters
[in]cThe codepoint to bind

Implemented in etm::Font, and etm::BmpFont.

◆ getCharHeight()

virtual int etm::EtmFont::getCharHeight ( )
pure virtual

Gets the height of each codepoint.

Returns
The height
See also
charHeight

Implemented in etm::Font, and etm::BmpFont.

◆ getCharWidth()

virtual int etm::EtmFont::getCharWidth ( )
pure virtual

Gets the width of each codepoint.

Returns
The width
See also
charWidth

Implemented in etm::Font, and etm::BmpFont.

◆ setSize()

virtual void etm::EtmFont::setSize ( unsigned int  size)
pure virtual

Set the pixel size of the font.

Parameters
[in]sizeThe pixel size

Implemented in etm::Font, and etm::BmpFont.


The documentation for this class was generated from the following file: