wow, I created ground and fire
This commit is contained in:
parent
c14d6e6c59
commit
2288fb8d15
14 changed files with 185 additions and 48 deletions
|
@ -2,24 +2,27 @@
|
|||
#define WINDOW
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include "../game/GameObject.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Window
|
||||
{
|
||||
public:
|
||||
Window(int width, int height, int windowFlags);
|
||||
Window(int width, int height, int windowFps, int windowFlags);
|
||||
void clear();
|
||||
void draw();
|
||||
void draw(GameObject &draw);
|
||||
void update();
|
||||
void quit();
|
||||
|
||||
private:
|
||||
SDL_Window *window;
|
||||
SDL_Surface *spritesheet;
|
||||
SDL_Surface *surface;
|
||||
SDL_Renderer *renderer;
|
||||
SDL_Texture* spritesheet;
|
||||
int windowDelay;
|
||||
};
|
||||
|
||||
#endif //WINDOW
|
Loading…
Add table
Add a link
Reference in a new issue