comp-b-cw1/mainDLA.cpp
2023-02-19 18:17:22 +00:00

36 lines
740 B
C++

#include <iostream>
#include <stdio.h>
#include <vector>
#include <math.h>
#include <string>
#include "DLASystem.h"
using std::cout;
using std::endl;
// this is a global pointer, which is how we access the system itself
DLASystem *sys;
int main(int argc, char **argv) {
std::ofstream csv_out("./out.csv");
// create the system
sys = new DLASystem(std::move(csv_out));
// this is the seed for the random numbers
int seed = 6;
cout << "setting seed " << seed << endl;
sys->setSeed(seed);
sys->setRunning();
/*
* NOTE: We run at max speed as rendering is handled by a different engine so we simply want to hjand
* */
while (sys->running) {
sys->Update();
}
return 0;
}