diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-13 14:02:55 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-13 14:02:55 -0400 |
commit | 6bc81dd151c94ad72a9560761a9964e066cc53e6 (patch) | |
tree | 0c01b338ad13c94d4cea77853f7d98d12ab9bc73 /src/main.cpp | |
parent | 8a88ef32f41a69166280dae8f59fa6477fd3609a (diff) |
added text using freetype2
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 88c08ef..6c53a75 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -67,6 +67,9 @@ int main(int argc,char **argv){ **** GAMELOOP **** **************************/ + ui.init("ttf/VCR_OSD_MONO_1.001.ttf"); + ui.setFontSize(100); + irand(time(NULL)); entPlay = &player; entPlay->spawn(0, 0); @@ -176,6 +179,8 @@ void render(){ glRectf(build.loc.x, build.loc.y, build.loc.x + build.width, build.loc.y + build.height); ///BWAHHHHHHHHHHHH + ui.putText(0,0,"Hello"); + /************************** **** CLOSE THE LOOP **** **************************/ |