#include "texture.h"
#include "machine.h"
#include "meshgen.h"
+#include "mparser.h"
static bool init();
static void cleanup();
Mesh::use_custom_sdr_attr = false;
machine = new Machine;
+ if(!parse_machine(machine, "data/test.machine")) {
+ fprintf(stderr, "failed to parse machine\n");
+ return false;
+ }
+ /*
const float pitch = 10.0f;
Gear *gear1 = new Gear;
gear2->attach(subgear);
machine->add_gear(subgear);
subgear->color = Vec3(0.8, 0.7, 0.5);
+ */
- machine->add_motor(0, 1.0);
+ //machine->add_motor(0, 1.0);
// shadows
init_shadow(2048);