Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "game.h"
- #define WIDTH 800
- #define HEIGHT 600
- Game::Game() {}
- Game::~Game() {}
- void Game::init()
- {
- Display display(WIDTH, HEIGHT, "Crude (indev version 0.1)");
- }
- void Game::render()
- {
- }
- void Game::update()
- {
- while (SDL_PollEvent(&e) != 0)
- {
- if (e.type == SDL_QUIT)
- running = false;
- }
- }
- void Game::shutdown()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment