37 lines
693 B
C++
37 lines
693 B
C++
#ifndef _TEXTURE_H_
|
|
#define _TEXTURE_H_
|
|
#include "../Unuk/Globals.h"
|
|
#include "ImageLoader.h"
|
|
#include "ApplySurface.h"
|
|
|
|
class Texture {
|
|
public:
|
|
Texture(void);
|
|
~Texture(void);
|
|
|
|
int GetWidth(void) { return _texture->w; }
|
|
int GetHeight(void) { return _texture->h; }
|
|
int GetX(void) { return x; }
|
|
int GetY(void) { return y; }
|
|
|
|
void SetXY(int xArg, int yArg);
|
|
|
|
void Render(void);
|
|
void Render(int xArg, int yArg);
|
|
|
|
void RenderLiteral(void);
|
|
void RenderLiteral(int xArg, int yArg);
|
|
|
|
void Load(const char* filename);
|
|
void LoadAlpha(const char* filename);
|
|
void SetAlpha(int alphaArg);
|
|
|
|
protected:
|
|
int x, y;
|
|
|
|
private:
|
|
SDL_Surface* _texture;
|
|
};
|
|
|
|
#endif
|