24 lines
616 B
C++
24 lines
616 B
C++
/** An entry-point file using render/GlutRender as a renderer
|
|
* As of now, mostly for testing purposes.
|
|
**/
|
|
|
|
#include "render/GlutRender.hpp"
|
|
#include "util/ObjParser.hpp"
|
|
#include "Mesh.hpp"
|
|
|
|
int main(int argc, char** argv) {
|
|
GlutRender& render = GlutRender::get_instance();
|
|
render.init(&argc, argv, 640, 480, "Bouncing stuff");
|
|
|
|
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();
|
|
|
|
return 0;
|
|
}
|