Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Cave-Crawler/GameManager.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (25 sloc)
558 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef GAMEMANAGER_H | |
#define GAMEMANAGER_H | |
#define SDL_MAIN_HANDLED | |
#include "SDL.h" | |
#include <iostream> | |
#include "SDL_image.h" | |
class GameManager { | |
public: | |
GameManager(); | |
~GameManager(); | |
void init(const char* title, int xpos, int ypos, int width, int height, bool fullscreen); | |
void handleEvents(); | |
void update(); | |
void renderer(); | |
void clean(); | |
bool running() { | |
return isRunning; | |
} | |
static SDL_Renderer *render; | |
private: | |
int count = 0; | |
bool isRunning; | |
SDL_Window *window; | |
}; | |
#endif // !GameManager_h |