Fancify scene, adding a tet
This commit is contained in:
parent
66d6d89aeb
commit
ae95da9cd8
1 changed files with 7 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue