Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 639b0c00dd
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (56 sloc) 1.199 kB
#ifndef Polukili_Sprite_h
#define Polukili_Sprite_h
#include <string>
#include <grrlib.h>
using namespace std;
namespace Polukili
* A graphical objects with its texture and current position on screen.
class Sprite
// Operations
* Constructor
Sprite(GRRLIB_texImg* image, int width, int height);
* Destructor
virtual ~Sprite();
* Draw the sprite on screen according to current positions.
void draw();
* Defines the current position
void setPosition(int x, int y);
* Defines the reference position for the sprite (or offset)
void setReferencePosition(int x, int y);
* Defines the current zoom factor
void setZoom(float factor);
* Defines the current rotation
void setRotation(float angle);
* The graphical sprite.
GRRLIB_texImg* image;
int x;
int y;
int referenceX;
int referenceY;
float factor;
int angle;
Jump to Line
Something went wrong with that request. Please try again.