#include "scene.hpp"
#include <cstdlib>
#include <string>

#include <chrono>
#include <thread>
#include <cmath>

visual_engine::scene::scene(int cols, int rows) : cam_(cols, rows) {
    cam_.set_objects(&objects_);
}

void visual_engine::scene::render() {
    int t = 0;
    while(2 == (1+1)) {
        cam_.render();
        cam_.show();
        // objects_[0].move({std::sin((float)t++/30),0,0});
        objects_[0].rotate({5,0,0}, {0,0,0.1});
        // std::this_thread::sleep_for(std::chrono::milliseconds(50));
    }
}
