KGLLib
Public Member Functions | Public Attributes
KGLLib::TextRenderer::Private Class Reference

List of all members.

Public Member Functions

void do_draw (const QString &string, const QFont &font)

Public Attributes

QMap< QFont, QHash< QChar,
CharRenderer * > > 
charTable
GLWidgetglwidget
GLboolean textmode
bool initialized
GLenum textureTarget

Member Data Documentation

QMap<QFont, QHash<QChar, CharRenderer*> > KGLLib::TextRenderer::Private::charTable

This hash gives the correspondence table between QFonts and QChars (the keys) and the corresponding CharRenderers (the values). Every time a QChar is being met, either it is found in this table, in which case it can be directly rendered, or it is not found, in which case a new CharRenderer is created for it and added to this table.

The GLWidget in which to render. This is set once and for all by setup().

Referenced by KGLLib::TextRenderer::begin(), KGLLib::TextRenderer::draw(), and KGLLib::TextRenderer::end().


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