frametimes

This commit is contained in:
Ben Kyd
2019-08-05 22:12:58 +01:00
parent f57d75199f
commit ca3cf28a31
5 changed files with 150067 additions and 16 deletions

View File

@@ -1,18 +1,21 @@
#include <iostream>
#include "../src/inferno.hpp"
static const int width = 600;
static const int height = 600;
int main(int argc, char** argv) {
InfernoEngine inferno;
inferno.SetMode(MODE_PROGRESSIVE_GUI);
bool status = inferno.InitWindow(600, 600);
bool status = inferno.InitWindow(width, height);
if (!status) {
std::cout << "Error initializing window: " << inferno.LastError() << std::endl;
}
Scene* scene = new Scene(600, 600);
scene->camera = new Camera(600, 600);
Scene* scene = new Scene(width, height);
scene->camera = new Camera(width, height);
scene->objects.push_back(new Plane({0.0f, -0.5f, 0.0f}, {0.0f, -1.0f, 0.0f}));
scene->objects.push_back(new Sphere({0.0f, 0.0f, -4.0f}, 1.0f));