simplify font drawing a bit so we only have to move one function to pango
This commit is contained in:
parent
bf2ca2011e
commit
5473ceccf9
|
|
@ -2012,8 +2012,10 @@ struct OpenGLBinding
|
||||||
/// \brief Renders \p character at the current raster-position of the current context.
|
/// \brief Renders \p character at the current raster-position of the current context.
|
||||||
void drawChar(char character) const
|
void drawChar(char character) const
|
||||||
{
|
{
|
||||||
m_glListBase(m_font);
|
char s[2];
|
||||||
m_glCallLists(1, GL_UNSIGNED_BYTE, reinterpret_cast<const GLubyte*>(&character));
|
s[0] = character;
|
||||||
|
s[1] = 0;
|
||||||
|
drawString(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user