summaryrefslogtreecommitdiff
path: root/common/texfont.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/texfont.h')
-rw-r--r--common/texfont.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/texfont.h b/common/texfont.h
index e3dc185..f5b190c 100644
--- a/common/texfont.h
+++ b/common/texfont.h
@@ -4,6 +4,8 @@
class File;
class Texture;
+#include "texture.h"
+
class TexFont
{
public:
@@ -12,6 +14,8 @@ public:
bool IsLoaded () const
{ return m_bLoaded; }
+ void MakeCurrent ()
+ { if (m_bLoaded) m_pTexture->MakeCurrent (); }
bool FileLoad (File& file);
void PrintText (float left, float top, const char* text) const;