From 08c898f79acd024718b071f0d08eb32f3f093cbd Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 11 May 2016 23:39:10 +0800 Subject: Allow truetype fonts to be rendered at arbitrary Z coordinates. --- include/smttfont.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/smttfont.hpp b/include/smttfont.hpp index 0f87b1c..0d90179 100644 --- a/include/smttfont.hpp +++ b/include/smttfont.hpp @@ -33,7 +33,7 @@ public: float h(){return (float)_h;} void free(); bool setChar(wchar_t c,FT_Face ttface); - void render(float x,float y,DWORD col); + void render(float x,float y,float z,DWORD col); }; class smTTFont @@ -52,7 +52,7 @@ public: float getWidth(){return w;} float getHeight(){return h;} void updateString(const wchar_t *format,...); - void render(float x,float y,DWORD col,int align); + void render(float x,float y,float z,DWORD col,int align); DWORD getCacheSize(); void clearCache(); }; -- cgit v1.2.3