summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-01-21 19:10:15 +0100
committerGravatar jonas <himself@jonasgunz.de> 2019-01-21 19:10:15 +0100
commitb8aa898b1f3182d028a67c39d8643b331c565053 (patch)
tree27a3f5cfec680df457b3000f79d07b8ba81e7870 /main.cpp
parente2063723f9dcd32cabd5f2441228fd1539799a75 (diff)
downloadtermgl-b8aa898b1f3182d028a67c39d8643b331c565053.tar.gz
started rotate()
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 9 insertions, 2 deletions
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);
}