www.pudn.com > Gimcrack-v0.0051-Source.zip > sprite.h
#ifndef _SPRITE_H_
#define _SPRITE_H_
#include "../Texture.h"
class GcSprite
{
public:
// Constructor / Destructor
GcSprite();
~GcSprite();
// Load
bool Load(char *fileName, int width, int height);
// Draw
void Draw(float x, float y);
private:
GcTexture texture; // The texture for the sprite
int width; // The sprite's width
int height; // The sprites height
};
#endif