geSprite2D
From GriffinEngine
A simple 2D sprite implementation. It can be positioned, rotated, and scaled.
Contents
Usage
Inheritance
Base classes
- geObject
- geObject2D
- geSprite2D
- geObject2D
Derived classes
Reference
Fields
Note: All coordinates are in pixels, relative to top-left corner of the window. All angles are in degrees.
- ↖
double x; // x coordinate (px) - ↖
double y; // y coordinate (px) - ↖
double r; // rotation (degrees) - around axis point - ↖
double s; // scale - around axis point - ↖
double w; // width (px) - ↖
double h; // height (px) - ↖
double alignX; // horizontal alignment offset - use Align() to set these - ↖
double alignY; // vertical alignment offset - ↖
double axisX; // horizontal axis offset - use SetAxis() to set these - ↖
double axisY; // vertical axis offset - ↖
bool active; // indicates whether object should be active/visible geSprite* sprite; // the sprite
Constructors
geSprite2D( int _x=0, int _y=0, int _w=0, int _h=0, geSprite* _sprite=NULL );geSprite2D( const geSprite2D& original ); // copy constructor
Methods
- ↖
virtual void Align( int alignment = GE_ALIGN_TL, double _alignX = 0, double _alignY = 0 ); - ↖
virtual void SetAxis( int axis = GE_ALIGN_CENTER, double _axisX = 0, double _axisY = 0 );
| HUD |
|---|
| geHUD |
| geAnim2D · geButton · geCircle · geObject2D · geSprite2D · geText2D |
Categories:
- API
- HUD