Madolite

Untitled

Feb 22nd, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include "game.h"
  2.  
  3. #define WIDTH 800
  4. #define HEIGHT 600
  5.  
  6. Game::Game() {}
  7. Game::~Game() {}
  8.  
  9. void Game::init()
  10. {
  11. Display display(WIDTH, HEIGHT, "Crude (indev version 0.1)");
  12. }
  13. void Game::render()
  14. {
  15.  
  16. }
  17. void Game::update()
  18. {
  19. while (SDL_PollEvent(&e) != 0)
  20. {
  21. if (e.type == SDL_QUIT)
  22. running = false;
  23. }
  24. }
  25. void Game::shutdown()
  26. {
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment