engineer-thesis-WUT/Engine/engine/match.cpp

29 lines
710 B
C++

#ifndef MAIN_CPP
#define MAIN_CPP
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <random> // I am using standart library RNG because I am lazy and wanted to create quick code snippet
// upgrade to this: https://arvid.io/2018/06/30/on-cxx-random-number-generator-quality/ whenever, if ever I feel like it
#include <chrono> // for std::chrono
#include "constants.hpp"
#include "beforeRender.hpp"
#include "misc.hpp"
#include "renderLoop.hpp"
int main()
{
// changed in glfwWindowShouldClose
GLFWwindow *window = prepareForRender();
if (window == NULL)
return -1;
renderLoop(window);
// clean GLFW resources
glfwTerminate();
return 0;
}
#endif