first commit
This commit is contained in:
commit
6f2408393c
30 changed files with 7856 additions and 0 deletions
25
src/window/window.h
Normal file
25
src/window/window.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef WINDOW
|
||||
#define WINDOW
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Window
|
||||
{
|
||||
public:
|
||||
Window(int width, int height, int sdlOption);
|
||||
void clear();
|
||||
void draw();
|
||||
void update();
|
||||
void quit();
|
||||
|
||||
private:
|
||||
SDL_Window *window;
|
||||
SDL_Surface *spritesheet;
|
||||
SDL_Surface *surface;
|
||||
};
|
||||
|
||||
#endif //WINDOW
|
Loading…
Add table
Add a link
Reference in a new issue