Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef GAME_H
- #define GAME_H
- #include <SDL.h>
- #include <SDL_image.h>
- #include <iostream>
- using namespace std;
- const int WIN_W = 1500;
- const int WIN_H = 900;
- class Game
- {
- private:
- bool isRunning;
- SDL_Window* window;
- public:
- Game();
- ~Game();
- bool init(const char* title, int xpos, int ypos, int width, int height);
- void handleEvents();
- void update();
- void render();
- void clean();
- bool running()
- { return isRunning; }
- static SDL_Renderer* renderer;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment