| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //__________________________ Banshee Project - A modern game development toolkit _________________________________//
- //_____________________________________ www.banshee-project.com __________________________________________________//
- //________________________ Copyright (c) 2014 Marko Pintera. All rights reserved. ________________________________//
- #include "BsFontImportOptions.h"
- #include "BsFontImportOptionsRTTI.h"
- namespace BansheeEngine
- {
- FontImportOptions::FontImportOptions()
- :mDPI(72), mAntialiasing(true)
- {
- mFontSizes.push_back(10);
- mCharIndexRanges.push_back(std::make_pair(33, 166)); // Most used ASCII characters
- }
- void FontImportOptions::addCharIndexRange(UINT32 from, UINT32 to)
- {
- mCharIndexRanges.push_back(std::make_pair(from, to));
- }
- void FontImportOptions::clearCharIndexRanges()
- {
- mCharIndexRanges.clear();
- }
- /************************************************************************/
- /* SERIALIZATION */
- /************************************************************************/
- RTTITypeBase* FontImportOptions::getRTTIStatic()
- {
- return FontImportOptionsRTTI::instance();
- }
- RTTITypeBase* FontImportOptions::getRTTI() const
- {
- return FontImportOptions::getRTTIStatic();
- }
- }
|