CrystalSpace

Public API Reference

csGLFontCache Class Reference
[Common Plugin Classes]

OpenGL font cache. More...

#include <csplugincommon/opengl/glfontcache.h>

Inheritance diagram for csGLFontCache:

List of all members.

Public Member Functions

void DumpFontCache (csRefArray< iImage > &pages)
 Create images of all the texture pages used for caching.
void FlushText ()
 Flush the cached text vertices.
void Setup ()
 Read configuration etc.
virtual void WriteString (iFont *font, int pen_x, int pen_y, int fg, int bg, const void *text, bool isWide, uint flags)
 Draw a string using OpenGL, where the baseline starts at x,y.

Protected Member Functions

virtual GlyphCacheDataInternalCacheGlyph (KnownFont *font, utf32_char glyph, uint flags)
 Cache canvas-dependent information for a specific font/glyph pair.
virtual void InternalUncacheGlyph (GlyphCacheData *cacheData)
 Uncache canvas-dependent information.

Detailed Description

OpenGL font cache.

Definition at line 44 of file glfontcache.h.


Member Function Documentation

void csGLFontCache::DumpFontCache ( csRefArray< iImage > &  pages  ) 

Create images of all the texture pages used for caching.

void csGLFontCache::FlushText (  ) 

Flush the cached text vertices.

The text writer caches some text (and sets some needed states). Before drawing anything else, the text cache has to be flushed (and the states reset).

virtual GlyphCacheData* csGLFontCache::InternalCacheGlyph ( KnownFont font,
utf32_char  glyph,
uint  flags 
) [protected, virtual]

Cache canvas-dependent information for a specific font/glyph pair.

Reimplemented from csFontCache.

virtual void csGLFontCache::InternalUncacheGlyph ( GlyphCacheData cacheData  )  [protected, virtual]

Uncache canvas-dependent information.

Reimplemented from csFontCache.

void csGLFontCache::Setup (  ) 

Read configuration etc.

virtual void csGLFontCache::WriteString ( iFont font,
int  pen_x,
int  pen_y,
int  fg,
int  bg,
const void *  text,
bool  isWide,
uint  flags 
) [virtual]

Draw a string using OpenGL, where the baseline starts at x,y.

Reimplemented from csFontCache.


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

Generated for Crystal Space 1.4.1 by doxygen 1.7.1