PixelLightAPI
.
|
Abstract renderer font manager. More...
#include <FontManager.h>
Public Member Functions | |
Renderer & | GetRenderer () const |
Returns the owner renderer. | |
PLRENDERER_API Font * | GetDefaultFontTexture () |
Returns the default texture font. | |
PLRENDERER_API void | SetDefaultFontTexture (FontTexture *pFont) |
Sets the default texture font. | |
PLRENDERER_API FontTexture * | GetFontTexture (const PLCore::String &sFilename, PLCore::uint32 nSize=12, PLCore::uint32 nResolution=96) |
Returns a texture font. | |
PLRENDERER_API void | ClearFontTexture () |
Clears all texture fonts. | |
virtual PLRENDERER_API Font * | CreateFontTexture (const PLCore::String &sFilename, PLCore::uint32 nSize=12, PLCore::uint32 nResolution=96) |
Creates a texture font. | |
virtual Font * | CreateFontTexture (PLCore::File &cFile, PLCore::uint32 nSize=12, PLCore::uint32 nResolution=96)=0 |
Creates a texture font. | |
Protected Member Functions | |
PLRENDERER_API | FontManager (Renderer &cRenderer) |
Constructor. | |
virtual PLRENDERER_API | ~FontManager () |
Destructor. | |
Protected Attributes | |
Renderer * | m_pRenderer |
ResourceHandler * | m_pDefaultFontTextureHandler |
bool | m_bDefaultFontTextureSet |
PLCore::Array< FontTexture * > | m_lstFontTexture |
Abstract renderer font manager.
PLRENDERER_API PLRenderer::FontManager::FontManager | ( | Renderer & | cRenderer | ) | [protected] |
Constructor.
[in] | cRenderer | Owner renderer |
virtual PLRENDERER_API PLRenderer::FontManager::~FontManager | ( | ) | [protected, virtual] |
Destructor.
Renderer & PLRenderer::FontManager::GetRenderer | ( | ) | const [inline] |
Returns the owner renderer.
PLRENDERER_API Font* PLRenderer::FontManager::GetDefaultFontTexture | ( | ) |
Returns the default texture font.
PLRENDERER_API void PLRenderer::FontManager::SetDefaultFontTexture | ( | FontTexture * | pFont | ) |
Sets the default texture font.
[in] | pFont | The texture font or a null pointer |
PLRENDERER_API FontTexture* PLRenderer::FontManager::GetFontTexture | ( | const PLCore::String & | sFilename, |
PLCore::uint32 | nSize = 12 , |
||
PLCore::uint32 | nResolution = 96 |
||
) |
Returns a texture font.
[in] | sFilename | The font filename |
[in] | nSize | Nominal font size in points, for example 12 (72 points per inch) |
[in] | nResolution | The horizontal and vertical resolution in DPI, for example 96 |
PLRENDERER_API void PLRenderer::FontManager::ClearFontTexture | ( | ) |
Clears all texture fonts.
virtual PLRENDERER_API Font* PLRenderer::FontManager::CreateFontTexture | ( | const PLCore::String & | sFilename, |
PLCore::uint32 | nSize = 12 , |
||
PLCore::uint32 | nResolution = 96 |
||
) | [virtual] |
Creates a texture font.
[in] | sFilename | The font filename |
[in] | nSize | Nominal font size in points, for example 12 (72 points per inch) |
[in] | nResolution | The horizontal and vertical resolution in DPI, for example 96 |
virtual Font* PLRenderer::FontManager::CreateFontTexture | ( | PLCore::File & | cFile, |
PLCore::uint32 | nSize = 12 , |
||
PLCore::uint32 | nResolution = 96 |
||
) | [pure virtual] |
Creates a texture font.
[in] | cFile | File to load from, must be opened and readable |
[in] | nSize | Nominal font size in points, for example 12 (72 points per inch) |
[in] | nResolution | The horizontal and vertical resolution in DPI, for example 96 |
Renderer* PLRenderer::FontManager::m_pRenderer [protected] |
Owner renderer, always valid!
Default texture font, always valid!
bool PLRenderer::FontManager::m_bDefaultFontTextureSet [protected] |
Default font texture already set?
Texture fonts
|