From b8aa898b1f3182d028a67c39d8643b331c565053 Mon Sep 17 00:00:00 2001 From: jonas Date: Mon, 21 Jan 2019 19:10:15 +0100 Subject: started rotate() --- main.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 49670c4..531071e 100644 --- a/main.cpp +++ b/main.cpp @@ -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); } -- cgit v1.2.3