frametimes
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user