Interface for all etermal fonts.
More...
#include <EtmFont.h>
|
typedef unsigned int | char_t |
| Codepoint type.
|
|
|
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...
|
|
Interface for all etermal fonts.
- See also
- Font
-
BmpFont
◆ 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] | c | The 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 |
The documentation for this class was generated from the following file: