main.cpp 292 B

12345678910111213141516171819
  1. #include "game.h"
  2. #include <SDL2/SDL.h>
  3. #include <fmt/core.h>
  4. int
  5. main (int, char **)
  6. {
  7. if (SDL_Init (SDL_INIT_VIDEO) < 0)
  8. {
  9. fmt::print ("could not init SDL.");
  10. return (EXIT_FAILURE);
  11. }
  12. Game::App app = Game::App ("SDL Game", 800, 600);
  13. app.run ();
  14. return 0;
  15. }