You.i Engine
YiFrameworkConfiguration.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_FRAMEWORK_CONFIGURATION_H_
3 #define _YI_FRAMEWORK_CONFIGURATION_H_
4 
5 #include "framework/YiPredef.h"
7 
19 {
20 public:
23 
28  void SetMaxFonts(uint16_t maxFonts);
29 
35  void SetTextAtlasSize(uint16_t fontAtlasSize, CYITextEngine::TextType textAtlasType = CYITextEngine::TextType::All);
36 
40  uint16_t GetMaxFonts() const;
41 
50 
54  const std::map<CYITextEngine::TextType, uint16_t> &GetTextAtlasSizes() const;
55 
65  void SetAudioEngineEnabled(bool enabled);
66 
71  bool IsAudioEngineEnabled() const;
72 
83  void SetSpeechSynthesizerEnabled(bool enabled);
84 
91  bool IsSpeechSynthesizerEnabled() const;
92 
93 private:
94  uint16_t m_maxFonts;
95  std::map<CYITextEngine::TextType, uint16_t> m_textAtlasSizes;
96  bool m_audioEngineEnabled;
97  bool m_speechEnabled;
98 };
99 
102 #endif /* _YI_FRAMEWORK_CONFIGURATION_H_ */
uint16_t GetTextAtlasSize(CYITextEngine::TextType textAtlasType=CYITextEngine::TextType::All) const
uint16_t GetMaxFonts() const
virtual ~CYIFrameworkConfiguration()
TextType
Definition: YiTextEngine.h:51
bool IsAudioEngineEnabled() const
void SetMaxFonts(uint16_t maxFonts)
void SetAudioEngineEnabled(bool enabled)
CYIFrameworkConfiguration is used to specify configuration settings for the CYIFramework class...
Definition: YiFrameworkConfiguration.h:18
void SetSpeechSynthesizerEnabled(bool enabled)
bool IsSpeechSynthesizerEnabled() const
void SetTextAtlasSize(uint16_t fontAtlasSize, CYITextEngine::TextType textAtlasType=CYITextEngine::TextType::All)
const std::map< CYITextEngine::TextType, uint16_t > & GetTextAtlasSizes() const