| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include "CmFont.h"
- #include "CmFontRTTI.h"
- #include "CmFontManager.h"
- namespace CamelotEngine
- {
- Font::Font()
- :Resource(false)
- {
- }
- Font::~Font()
- {
- }
- void Font::initialize(const FONT_DESC& fontDesc, vector<TexturePtr>::type texturePages)
- {
- mFontDesc = fontDesc;
- mTexturePages = texturePages;
- Resource::initialize();
- }
- FontHandle Font::create(const FONT_DESC& fontDesc, vector<TexturePtr>::type texturePages)
- {
- FontPtr newFont = FontManager::instance().create(fontDesc, texturePages);
- return Resource::_createResourceHandle(newFont);
- }
- RTTITypeBase* Font::getRTTIStatic()
- {
- return FontRTTI::instance();
- }
- RTTITypeBase* Font::getRTTI() const
- {
- return Font::getRTTIStatic();
- }
- }
|