Text Manager. More...
Namespaces | |
| kanzi | |
Functions | |
| KANZI_API kzsError | kzuTextManagerCreate (const KzcMemoryManager *memoryManager, kanzi::ResourceManager *resourceManager, KzuTextManager **out_textManager) |
| Creates a text manager. More... | |
| KANZI_API kzsError | kzuTextManagerDelete (KzuTextManager *textManager) |
| Deletes a text manager. More... | |
| KANZI_API void | kzuTextManagerSetGlyphCacheSize (KzuTextManager *textManager, kzUint glyphCacheWidth, kzUint glyphCacheHeight) |
| Sets the size of the textures in glyph caches created by the text manager. More... | |
| KANZI_API kzsError | kzuTextManagerGetGlyphCache (const KzuTextManager *textManager, KzuFont *font, kzFloat fontSize, KzuGlyphCache **out_glyphCache) |
| Retrieves the glyph cache associated with the given font and font size. More... | |
| KANZI_API void | kzuTextManagerNotifyFontDeleted (const KzuTextManager *textManager, KzuFont *font) |
| Notifies the text manager that the given font has been deleted. More... | |
| KANZI_API void | kzuTextManagerClearGlyphCaches (const KzuTextManager *textManager) |
| Removes all glyph caches. More... | |
Text Manager.
Copyright 2008-2017 by Rightware. All rights reserved.
| KANZI_API kzsError kzuTextManagerCreate | ( | const KzcMemoryManager * | memoryManager, |
| kanzi::ResourceManager * | resourceManager, | ||
| KzuTextManager ** | out_textManager | ||
| ) |
Creates a text manager.
| KANZI_API kzsError kzuTextManagerDelete | ( | KzuTextManager * | textManager | ) |
Deletes a text manager.
| KANZI_API void kzuTextManagerSetGlyphCacheSize | ( | KzuTextManager * | textManager, |
| kzUint | glyphCacheWidth, | ||
| kzUint | glyphCacheHeight | ||
| ) |
Sets the size of the textures in glyph caches created by the text manager.
| KANZI_API kzsError kzuTextManagerGetGlyphCache | ( | const KzuTextManager * | textManager, |
| KzuFont * | font, | ||
| kzFloat | fontSize, | ||
| KzuGlyphCache ** | out_glyphCache | ||
| ) |
Retrieves the glyph cache associated with the given font and font size.
| KANZI_API void kzuTextManagerNotifyFontDeleted | ( | const KzuTextManager * | textManager, |
| KzuFont * | font | ||
| ) |
Notifies the text manager that the given font has been deleted.
This allows the text manager to clean-up glyph caches for that font.
| KANZI_API void kzuTextManagerClearGlyphCaches | ( | const KzuTextManager * | textManager | ) |
Removes all glyph caches.