From: Rudolf Polzer Date: Tue, 16 Nov 2010 11:24:06 +0000 (+0100) Subject: simplify font drawing a bit so we only have to move one function to pango X-Git-Tag: xonotic-v0.5.0~152 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=5473ceccf9cf7aebaa0f03c60e4b3f16182d627f;hp=bf2ca2011e074cb236802c8767c0d38836ef2a3f simplify font drawing a bit so we only have to move one function to pango --- diff --git a/include/igl.h b/include/igl.h index 0662379e..7ea3b944 100644 --- a/include/igl.h +++ b/include/igl.h @@ -2012,8 +2012,10 @@ struct OpenGLBinding /// \brief Renders \p character at the current raster-position of the current context. void drawChar(char character) const { - m_glListBase(m_font); - m_glCallLists(1, GL_UNSIGNED_BYTE, reinterpret_cast(&character)); + char s[2]; + s[0] = character; + s[1] = 0; + drawString(s); }