BsFontImportOptions.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //__________________________ Banshee Project - A modern game development toolkit _________________________________//
  2. //_____________________________________ www.banshee-project.com __________________________________________________//
  3. //________________________ Copyright (c) 2014 Marko Pintera. All rights reserved. ________________________________//
  4. #include "BsFontImportOptions.h"
  5. #include "BsFontImportOptionsRTTI.h"
  6. namespace BansheeEngine
  7. {
  8. FontImportOptions::FontImportOptions()
  9. :mDPI(72), mAntialiasing(true)
  10. {
  11. mFontSizes.push_back(10);
  12. mCharIndexRanges.push_back(std::make_pair(33, 166)); // Most used ASCII characters
  13. }
  14. void FontImportOptions::addCharIndexRange(UINT32 from, UINT32 to)
  15. {
  16. mCharIndexRanges.push_back(std::make_pair(from, to));
  17. }
  18. void FontImportOptions::clearCharIndexRanges()
  19. {
  20. mCharIndexRanges.clear();
  21. }
  22. /************************************************************************/
  23. /* SERIALIZATION */
  24. /************************************************************************/
  25. RTTITypeBase* FontImportOptions::getRTTIStatic()
  26. {
  27. return FontImportOptionsRTTI::instance();
  28. }
  29. RTTITypeBase* FontImportOptions::getRTTI() const
  30. {
  31. return FontImportOptions::getRTTIStatic();
  32. }
  33. }