23 lines
585 B
C++
23 lines
585 B
C++
#include <iostream>
|
|
#include "../src/inferno.hpp"
|
|
|
|
int main(int argc, char** argv) {
|
|
InfernoEngine inferno;
|
|
|
|
inferno.SetMode(MODE_PROGRESSIVE_GUI);
|
|
|
|
bool status = inferno.InitWindow(600, 600);
|
|
if (!status) {
|
|
std::cout << "Error initializing window: " << inferno.LastError() << std::endl;
|
|
}
|
|
|
|
Scene* scene = new Scene(600, 600);
|
|
scene->camera = new Camera({0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 1.0f}, 600, 600);
|
|
scene->objects.push_back(new Sphere({0.0f, 0.0f, 2.0f}, 1.0f));
|
|
|
|
inferno.SetScene(scene);
|
|
|
|
inferno.Ready();
|
|
inferno.Render();
|
|
}
|