blob: 904eeae8b68b2a30ceeaa53d5ada06de8ccc808d (
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
|
#ifndef __TEXTURE_H__
#define __TEXTURE_H__
#include <SDL.h>
#include <Handle.h>
#include <Exceptions.h>
#include <generic.h>
namespace mogltk {
class texture : public Base {
public:
texture(int = 256, int = 256) throw (GeneralException);
texture(Handle *) throw (GeneralException);
virtual ~texture();
SDL_Surface * GetSurface();
Uint32 * GetPixels();
static SDL_Surface * LoadNTEX(Handle * h) throw (GeneralException) ;
Uint32 GetWidth();
Uint32 GetHeight();
private:
Uint32 width, height;
SDL_Surface * surface;
#ifdef TRACE_TEXTURES
static texture * header;
static texture * footer;
texture * next, * prev;
#endif
};
};
#endif
|