blob: 8c25770418a7aa51f542cb2c82e07efaf56cc597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef SIMPLE_h
#define SIMPLE_h
#include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_image.h>
/*
TODO:
-image loading
-texture quads
-ttf
-buttons/text input?
-timing
-events?
*/
namespace simple {
class simple {
private:
SDL_Renderer* mainRenderer;
SDL_Window* mainWindow;
public:
simple();
~simple();
void startSDL();
void closeSDL();
};
//ttfs will be included in the texture class
class texture {
private:
int textureWidth;
int textureHeight;
int fontWidth;
int fontHeight;
public:
texture();
~texture();
};
}
#endif
|