main.cxx 427 B

1234567891011121314151617181920
  1. #include "SDL.hxx"
  2. #include "SDLWindow.hxx"
  3. #include <cstdlib>
  4. int main(int argc, char** argv) try
  5. {
  6. SDL sdl{};
  7. SDLWindow window{
  8. "Snake",
  9. SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
  10. 0, 0,
  11. SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_BORDERLESS
  12. };
  13. return EXIT_SUCCESS;
  14. } catch (std::exception const& ex) {
  15. SDL_LogError(SDL_LOG_CATEGORY_ERROR, "%s", ex.what());
  16. return EXIT_FAILURE;
  17. }