Fancify scene, adding a tet

This commit is contained in:
Théophile Bastian 2018-02-06 21:29:32 +01:00
parent 66d6d89aeb
commit ae95da9cd8

View file

@ -10,9 +10,13 @@ int main(int argc, char** argv) {
GlutRender& render = GlutRender::get_instance();
render.init(&argc, argv, 640, 480, "Bouncing stuff");
Mesh mesh = ObjParser("mesh/cube.obj").parse();
mesh.translate(Point(2.5, -1, 0.));
render.add_mesh(&mesh);
Mesh cube = ObjParser("mesh/cube.obj").parse();
cube.translate(Point(2.5, -1, 0.));
render.add_mesh(&cube);
Mesh tet = ObjParser("mesh/tet.obj").parse();
tet.translate(Point(-2.5, 0.5, 0.));
render.add_mesh(&tet);
render.run();