summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'text.h')
-rw-r--r--text.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/text.h b/text.h
index 8b2f133..3fd603c 100644
--- a/text.h
+++ b/text.h
@@ -44,6 +44,12 @@ typedef struct {
/// index of previous glyph rendered, or 0 if this is the first
int prev_glyph;
+ /// added to x for rendering
+ /// this exists for complicated reasons
+ /// basically we want a way of consistently getting the size
+ /// of text without error from floating point imprecision
+ float x_render_offset;
+
/// used for forwards-compatibility
char _reserved[64];
} TextRenderState;