Merge branch 'feature/fontrendering' of openspace.itn.liu.se:/openspace into feature/fontrendering

This commit is contained in:
Alexander Bock
2015-11-23 22:29:30 -05:00
6 changed files with 265 additions and 223 deletions

View File

@@ -583,7 +583,9 @@ void OpenSpaceEngine::loadFonts2() {
ghoul::Dictionary fonts;
configurationManager()->getValue(ConfigurationManager::KeyFonts, fonts);
_fontManager = new ghoul::fontrendering::FontManager;
const glm::ivec3 fontAtlasSize{1024, 1024, 1};
_fontManager = new ghoul::fontrendering::FontManager(fontAtlasSize);
for (const std::string& key : fonts.keys()) {
std::string font;
fonts.getValue(key, font);