aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui.h')
-rw-r--r--include/ui.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ui.h b/include/ui.h
index 5304c1b..6f23a78 100644
--- a/include/ui.h
+++ b/include/ui.h
@@ -4,6 +4,8 @@
#include <common.h>
#include <cstdarg> // For putText()
+#define DEBUG
+
namespace ui { // Functions are kept in a namespace simply
// for organization
@@ -18,9 +20,9 @@ namespace ui { // Functions are kept in a namespace simply
void setFontFace(const char *ttf); // Checks and unpacks the TTF file for use by putString() and putText()
void setFontSize(unsigned int size); // Sets the size of the currently loaded font to 'size' pixels
- void putString(const float x,const float y,const char *s); // Draws the string 's' to the coordinates ('x','y'). The height (and therefore the width)
+ float putString(const float x,const float y,const char *s); // Draws the string 's' to the coordinates ('x','y'). The height (and therefore the width)
// are determined by what's currently set by setFontSize()
- void putText(const float x,const float y,const char *str,...); // Draws the formatted string 'str' using putString()
+ float putText(const float x,const float y,const char *str,...); // Draws the formatted string 'str' using putString()
void dialogBox(const char *name,const char *text,...); // Prepares a dialog box to be drawn (its drawn as a black background at the top of the
// screen and then 'text' is putString()'d