summaryrefslogtreecommitdiffstats
path: root/cmds/screenrecord/TextRenderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/screenrecord/TextRenderer.h')
-rw-r--r--cmds/screenrecord/TextRenderer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmds/screenrecord/TextRenderer.h b/cmds/screenrecord/TextRenderer.h
index 9a28fcb..03dd2fb 100644
--- a/cmds/screenrecord/TextRenderer.h
+++ b/cmds/screenrecord/TextRenderer.h
@@ -109,6 +109,10 @@ private:
// Like getGlyphHeight(), but result is scaled.
float getScaledGlyphHeight() const { return getGlyphHeight() * mScale; }
+ // Convert an ASCII character to a glyph index. Returns the glyph for
+ // '?' if we have no glyph for the specified character.
+ size_t glyphIndex(char ch) const;
+
GLuint mTextureName;
float mScale;