Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <gauge.h>
Public Types | |
enum | DIRECTION { GAUGE_UP, GAUGE_DOWN, GAUGE_RIGHT, GAUGE_LEFT, GAUGE_TIME } |
Public Member Functions | |
Gauge (const char *file, DIRECTION up) | |
void | Draw (float percentage) |
void | SetSize (float x, float y) |
void | GetSize (float &x, float &y) |
![]() | |
VSSprite (const char *file, enum FILTER texturefilter=BILINEAR, GFXBOOL force=GFXFALSE) | |
VSSprite (Texture *surface, float xcenter, float ycenter, float width, float height, float s=0.f, float t=0.f, bool isAnimation=false) | |
VSSprite (const VSSprite &source) | |
~VSSprite () | |
bool | LoadSuccess () const |
void | Draw () |
void | DrawHere (Vector &ll, Vector &lr, Vector &ur, Vector &ul) |
void | Rotate (const float &rad) |
void | SetRotation (const float &rot) |
void | GetRotation (float &rot) |
void | ReadTexture (VSFileSystem::VSFile *f) |
void | GetST (float &s, float &t) |
void | SetST (const float s, const float t) |
void | SetTime (double newtime) |
void | SetPosition (const float &x1, const float &y1) |
void | GetPosition (float &x1, float &y1) |
void | SetSize (float s1, float s2) |
void | GetSize (float &x1, float &y1) |
void | SetTimeSource (SharedPtr< Audio::Source > source) |
void | ClearTimeSource () |
bool | Done () const |
void | Reset () |
SharedPtr< Audio::Source > | GetTimeSource () const |
Texture * | getTexture () |
const Texture * | getTexture () const |
enum Gauge::DIRECTION |
Gauge::Gauge | ( | const char * | file, |
DIRECTION | up | ||
) |
void Gauge::Draw | ( | float | percentage) |
Definition at line 29 of file gauge.cpp.
References VSSprite::Draw(), GAUGE_DOWN, GAUGE_LEFT, GAUGE_RIGHT, GAUGE_TIME, GAUGE_UP, VSSprite::GetPosition(), VSSprite::GetSize(), VSSprite::SetPosition(), VSSprite::SetSize(), VSSprite::SetST(), and VSSprite::SetTime().
Definition at line 20 of file gauge.cpp.
References GAUGE_LEFT, GAUGE_UP, VSSprite::GetSize(), x, and y.
Definition at line 11 of file gauge.cpp.
References GAUGE_LEFT, GAUGE_UP, VSSprite::SetSize(), x, and y.
Referenced by Gauge().