#include <Sprite.h>
List of all members.
Public Member Functions |
| Sprite () |
| Sprite (Bitmap *animation, int length=1, int repeat=1, int share=1) |
virtual | ~Sprite () |
virtual void | Render (Video *video, DWORD flags) |
virtual void | Render2D (Video *video) |
virtual void | Update () |
virtual void | Scale (double scale) |
virtual void | Rescale (double scale) |
virtual void | Reshape (int w1, int h1) |
int | Width () const |
int | Height () const |
int | Looping () const |
int | NumFrames () const |
double | FrameRate () const |
void | SetFrameRate (double rate) |
double | Shade () const |
void | SetShade (double s) |
double | Angle () const |
void | SetAngle (double a) |
int | BlendMode () const |
void | SetBlendMode (int a) |
int | Filter () const |
void | SetFilter (int f) |
virtual void | SetAnimation (Bitmap *animation, int length=1, int repeat=1, int share=1) |
virtual void | SetTexCoords (const double *uv_interleaved) |
Bitmap * | Frame () const |
void | SetFrameIndex (int n) |
virtual bool | IsSprite () const |
| Graphic () |
virtual | ~Graphic () |
int | operator== (const Graphic &g) const |
int | operator< (const Graphic &g) const |
int | operator<= (const Graphic &g) const |
virtual void | SetOrientation (const Matrix &o) |
virtual int | CollidesWith (Graphic &o) |
int | Identity () const |
const char * | Name () const |
bool | IsVisible () const |
void | SetVisible (bool v) |
float | Radius () const |
Point | Location () const |
virtual void | MoveTo (const Point &p) |
virtual void | TranslateBy (const Point &ref) |
virtual float | Depth () const |
virtual void | SetDepth (float d) |
virtual int | IsInfinite () const |
virtual void | SetInfinite (bool b) |
virtual int | IsForeground () const |
virtual void | SetForeground (bool f) |
virtual int | IsBackground () const |
virtual void | SetBackground (bool b) |
virtual int | Hidden () const |
virtual int | Life () const |
virtual void | Destroy () |
virtual void | Hide () |
virtual void | Show () |
virtual bool | Luminous () const |
virtual void | SetLuminous (bool l) |
virtual bool | Translucent () const |
virtual bool | CastsShadow () const |
virtual void | SetShadow (bool s) |
virtual bool | IsSolid () const |
virtual bool | IsBolt () const |
virtual bool | IsQuad () const |
virtual void | ProjectScreenRect (Projector *p) |
const Rect & | ScreenRect () const |
virtual Scene * | GetScene () const |
virtual void | SetScene (Scene *s) |
virtual int | CheckRayIntersection (Point pt, Point vpn, double len, Point &ipt, bool treat_translucent_polys_as_solid=true) |
virtual bool | CheckVisibility (Projector &projector) |
Detailed Description
Definition at line 26 of file Sprite.h.
Constructor & Destructor Documentation
Sprite::Sprite |
( |
Bitmap * |
animation, |
|
|
int |
length = 1 , |
|
|
int |
repeat = 1 , |
|
|
int |
share = 1 |
|
) |
| |
Member Function Documentation
double Sprite::Angle |
( |
| ) |
const |
|
inline |
int Sprite::BlendMode |
( |
| ) |
const |
|
inline |
int Sprite::Filter |
( |
| ) |
const |
|
inline |
Bitmap * Sprite::Frame |
( |
| ) |
const |
double Sprite::FrameRate |
( |
| ) |
const |
int Sprite::Height |
( |
| ) |
const |
|
inline |
virtual bool Sprite::IsSprite |
( |
| ) |
const |
|
inlinevirtual |
int Sprite::Looping |
( |
| ) |
const |
|
inline |
int Sprite::NumFrames |
( |
| ) |
const |
|
inline |
void Sprite::Render |
( |
Video * |
video, |
|
|
DWORD |
flags |
|
) |
| |
|
virtual |
void Sprite::Render2D |
( |
Video * |
video | ) |
|
|
virtual |
void Sprite::Rescale |
( |
double |
scale | ) |
|
|
virtual |
void Sprite::Reshape |
( |
int |
w1, |
|
|
int |
h1 |
|
) |
| |
|
virtual |
void Sprite::Scale |
( |
double |
scale | ) |
|
|
virtual |
void Sprite::SetAngle |
( |
double |
a | ) |
|
|
inline |
void Sprite::SetAnimation |
( |
Bitmap * |
animation, |
|
|
int |
length = 1 , |
|
|
int |
repeat = 1 , |
|
|
int |
share = 1 |
|
) |
| |
|
virtual |
void Sprite::SetBlendMode |
( |
int |
a | ) |
|
|
inline |
void Sprite::SetFilter |
( |
int |
f | ) |
|
|
inline |
void Sprite::SetFrameIndex |
( |
int |
n | ) |
|
void Sprite::SetFrameRate |
( |
double |
rate | ) |
|
void Sprite::SetShade |
( |
double |
s | ) |
|
|
inline |
void Sprite::SetTexCoords |
( |
const double * |
uv_interleaved | ) |
|
|
virtual |
double Sprite::Shade |
( |
| ) |
const |
|
inline |
static const char* Sprite::TYPENAME |
( |
| ) |
|
|
inlinestatic |
int Sprite::Width |
( |
| ) |
const |
|
inline |
Member Data Documentation
The documentation for this class was generated from the following files: