Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
#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