diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-01-10 18:39:27 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-01-10 18:39:27 +0100 |
commit | bdce9a52170f1a3535c290a379e4cb9f509614ec (patch) | |
tree | 8791a6c18770b9027d172b68811b1af8a5b2f4c5 /main.cpp | |
parent | 66da4ff4d64af1a06110fa3c6c26af14724c419c (diff) | |
download | termgl-bdce9a52170f1a3535c290a379e4cb9f509614ec.tar.gz |
Makefile generates version.h
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,4 +1,7 @@ #include <unistd.h> +#include <string> + +#include "version.h" #include "cRender.h" #include "cObject.h" @@ -11,7 +14,9 @@ int main() { cRender render(' ', _COL_DEFAULT, 30,30); cObjectHandler handler(&render); + cObject ver(30,1); testobject obj; + cInput input; render.render(); @@ -19,6 +24,14 @@ int main() int iobj = handler.createObject((cObject*)&obj); handler.moveObject(iobj, {10,10}, _MOVE_ABSOLUTE); + ver.drawPoint('v', {0,0}, true, _COL_WHITE); + ver.drawPoint(VERSION + 48, {1,0}, true, _COL_WHITE); + ver.drawPoint('.', {2,0}, true, _COL_WHITE); + ver.drawPoint(PATCHLEVEL + 48, {3,0}, true, _COL_WHITE); + ver.drawText(DATE, {5,0}, _COL_WHITE); + int iver = handler.createObject(&ver); + handler.moveObject(iver, {0,0}, _MOVE_ABSOLUTE); + while(1) { sInputEvent ie = input.poll(); |