From c69c17899ebec23f752153f3bad3d42d2604c77c Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Wed, 12 Apr 2023 15:48:16 +0200 Subject: [PATCH] cleanup --- src/gpufont/font.hpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/gpufont/font.hpp b/src/gpufont/font.hpp index f3758ae..c170e0a 100644 --- a/src/gpufont/font.hpp +++ b/src/gpufont/font.hpp @@ -214,33 +214,6 @@ class Font { glVertexAttribIPointer(2, 1, GL_INT, sizeof(BufferVertex), (void *)offsetof(BufferVertex, bufferIndex)); glBindVertexArray(0); - //{ - //uint32_t charcode = 0; - //FT_UInt glyphIndex = 0; - //FT_Error error = FT_Load_Glyph(face, glyphIndex, loadFlags); - //if(error){ - //std::cerr << "[font] error while loading undefined glyph: " << error << std::endl; - //// Continue, because we always want an entry for the undefined glyph in our glyphs map! - //} - - //buildGlyph(charcode, glyphIndex); - //} - - //for(uint32_t charcode = 32; charcode < 128; charcode++){ - //FT_UInt glyphIndex = FT_Get_Char_Index(face, charcode); - //if(!glyphIndex){ - //continue; - //} - - //FT_Error error = FT_Load_Glyph(face, glyphIndex, loadFlags); - //if(error){ - //std::cerr << "[font] error while loading glyph for character " << charcode << ": " << error << std::endl; - //continue; - //} - - //buildGlyph(charcode, glyphIndex); - //} - uploadBuffers(); #ifndef TARGET_OPENGLES