#include #include #include #include #include "renderwindow.h" #include #include #include #include int main(int argc, char *argv[]) { QApplication application(argc, argv); SDL_InitSubSystem(SDL_INIT_VIDEO); if((SDL_Init(SDL_INIT_VIDEO) == -1)) { std::cerr << "Error initializing SDL: " << SDL_GetError() << std::endl; return EXIT_FAILURE; } auto window = std::make_shared(); window->show(); int res = QApplication::exec(); if (res != 0) { std::cerr << "QApplication::exec() returned " << res << std::endl; } SDL_Quit(); return EXIT_SUCCESS; }