-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTexture.h
40 lines (32 loc) · 977 Bytes
/
Texture.h
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
#ifndef TEXTURE_H_INCLUDED
#define TEXTURE_H_INCLUDED
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <iostream>
class Texture{
protected:
int m_height, m_width;
SDL_Texture* m_texture;
public:
void Render(int,int,SDL_Rect*);
bool LoadMedia(const char*);
bool Init();
//bool LoadText(const char*);
virtual void setSize(SDL_Surface*){}
virtual bool LoadFont(){}
virtual bool LoadText(const char*){}
inline int getWidth(){
return m_width;
}
inline int getHeight(){
return m_height;
}
virtual inline int getCellWidth(){}
virtual inline int getCellHeight(){}
virtual inline int getPieceWidth(){}
virtual inline int getPieceHeight(){}
virtual inline void setAlpha(int a){}
virtual void Close(){}
};
#endif // TEXTURE_H_INCLUDED