39 lines
897 B
C++
39 lines
897 B
C++
// General includes
|
|
#include <chrono>
|
|
#include <vector>
|
|
|
|
// #include <glm/glm.hpp>
|
|
// #include <glm/gtc/matrix_transform.hpp>
|
|
// #include <glm/gtc/type_ptr.hpp>
|
|
|
|
// Custom includes
|
|
#define LOGGER_DEFINITION
|
|
#include <logger.h>
|
|
|
|
#include "display.h"
|
|
|
|
int main (int argc, char** argv) {
|
|
|
|
std::cout << "-----------------------------\n"
|
|
<< "----- SMH Render Engine -----\n"
|
|
<< "-------- Version 0.0 --------\n"
|
|
<< "----- ©Benjamin Kyd 2019 ----\n"
|
|
<< "-----------------------------\n\n";
|
|
|
|
Logger logger;
|
|
|
|
Display display {"SMH Engine", logger, 1280, 720, MXAA_4X, VSYNC_ENABLED};
|
|
|
|
SDL_Event e;
|
|
while (!display.isClosed) {
|
|
while (SDL_PollEvent(&e))
|
|
if (e.type == SDL_QUIT || e.key.keysym.sym == SDLK_ESCAPE)
|
|
display.isClosed = true;
|
|
|
|
|
|
SDL_GL_SwapWindow(display.window);
|
|
}
|
|
|
|
return 0;
|
|
}
|