|
vdr-plugin-softhddevice-drm-gles 1.6.2
|
Texture Atlas for a Font. More...
#include <openglosd.h>
Public Member Functions | |
| cOglFontAtlas (FT_Face, int) | |
| virtual | ~cOglFontAtlas (void) |
| cOglAtlasGlyph * | GetGlyph (int) const |
| int | Height (void) const |
| int | Width (void) const |
| void | BindTexture (void) |
Private Attributes | |
| GLuint | m_texture = 0 |
| int | m_width = 0 |
| int | m_height = 0 |
| cOglAtlasGlyph * | m_pGlyph [MAX_CHARCODE - MIN_CHARCODE+1] |
Texture Atlas for a Font.
Represents a texture atlas keeping a range of glyphs on one texture per font and size instead of having one texture per glyph. This technique makes dealing with huge amounts of glyphs faster, because the bottleneck (texture up-/download/binding) is reduced at a minimum. Its faster to deal with one single bigger texture than many smaller ones.
The font atlas is prepared once at the time the new font or sized is accessed for the first time. We may have a little delay at startup, which is negligible.
Definition at line 171 of file openglosd.h.
Definition at line 176 of file openglosd.h.
References m_height.
Definition at line 177 of file openglosd.h.
References m_width.
|
private |
Definition at line 182 of file openglosd.h.
Referenced by cOglFontAtlas(), and Height().
|
private |
Definition at line 183 of file openglosd.h.
Referenced by cOglFontAtlas(), GetGlyph(), and ~cOglFontAtlas().
|
private |
Definition at line 180 of file openglosd.h.
Referenced by BindTexture(), cOglFontAtlas(), and ~cOglFontAtlas().
|
private |
Definition at line 181 of file openglosd.h.
Referenced by cOglFontAtlas(), and Width().