OpenGLTextGlyph const& OpenGLText::GetGlyph(int i) { glyphMap::iterator res = glyphs.find(i); if (res != glyphs.end()) return res->second; return CreateGlyph(i); }
OpenGLTextGlyph const& OpenGLText::GetGlyph(int i) { auto res = glyphs.find(i); return res != glyphs.end() ? res->second : CreateGlyph(i); }