diff options
author | jonas <himself@jonasgunz.de> | 2019-01-21 19:10:15 +0100 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2019-01-21 19:10:15 +0100 |
commit | b8aa898b1f3182d028a67c39d8643b331c565053 (patch) | |
tree | 27a3f5cfec680df457b3000f79d07b8ba81e7870 /main.cpp | |
parent | e2063723f9dcd32cabd5f2441228fd1539799a75 (diff) | |
download | termgl-b8aa898b1f3182d028a67c39d8643b331c565053.tar.gz |
started rotate()
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -35,8 +35,8 @@ int main() handler.moveObject(iver, {0,0}, _MOVE_ABSOLUTE); int x = 30; - int y = 20; - int z = 20; + int y = 30; + int z = 30; obj.addVector({0,0,z}, {x,0,0}, '+', _COL_RED); obj.addVector({0,0,z}, {0,y,0}, '+', _COL_RED); @@ -96,6 +96,12 @@ int main() case 's': position.z--; break; + case 'a': + obj.scale(1.2); + break; + case 'd': + obj.scale(0.8); + break; }; obj.setPosition(position); } @@ -108,6 +114,7 @@ int main() handler.write(); obj.write(&render); render.render(); + usleep(10*1000); } |