Starshatter_Open
Open source Starshatter engine
|
#include <Grid.h>
Public Types | |
enum | PLANE { GRID_XY, GRID_XZ, GRID_YZ } |
Public Types inherited from Graphic | |
enum | TYPE { OTHER, SOLID, SPRITE, BOLT, QUAD } |
enum | RENDER_FLAGS { RENDER_SOLID = 0x0001, RENDER_ALPHA = 0x0002, RENDER_ADDITIVE = 0x0004, RENDER_FIRST_LIGHT = 0x1000, RENDER_ADD_LIGHT = 0x2000 } |
Public Member Functions | |
Grid () | |
virtual | ~Grid () |
CPoint & | Snap (CPoint &p) |
bool | IsSnap () const |
bool | IsShow () const |
void | SetSnap (bool s) |
void | SetShow (bool s) |
void | SetSize (int x, int y=0) |
void | SetSkip (int x, int y=0) |
void | ShowMinor (bool show) |
void | ShowPlane (int p) |
void | ShowReference (bool show) |
const char * | GetReferencePlan () const |
void | SetReferencePlan (const char *fname) |
const char * | GetReferenceFront () const |
void | SetReferenceFront (const char *fname) |
const char * | GetReferenceSide () const |
void | SetReferenceSide (const char *fname) |
int | GetSize () const |
virtual void | Render (Video *video, DWORD flags) |
virtual void | RenderReference (Video *video) |
Grid (int size, int step) | |
virtual | ~Grid () |
virtual void | Render (Video *video, DWORD flags) |
virtual int | CollidesWith (Graphic &o) |
Public Member Functions inherited from Graphic | |
Graphic () | |
virtual | ~Graphic () |
int | operator== (const Graphic &g) const |
int | operator< (const Graphic &g) const |
int | operator<= (const Graphic &g) const |
virtual void | Update () |
virtual void | SetOrientation (const Matrix &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 | IsSprite () 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) |
Protected Member Functions | |
int | snapto (int i, int dim) |
virtual void | DrawLine (Video *video, Point &p1, Point &p2, Color c) |
Protected Attributes | |
bool | show |
bool | show_ref |
bool | snap |
bool | minor |
int | x_size |
int | y_size |
int | x_skip |
int | y_skip |
int | plane |
Vec3 * | x_major |
Vec3 * | x_minor |
Vec3 * | y_major |
Vec3 * | y_minor |
Bitmap * | bmp_plan |
Bitmap * | bmp_front |
Bitmap * | bmp_side |
int | size |
int | step |
int | drawn |
Protected Attributes inherited from Graphic | |
int | id |
Point | loc |
float | depth |
float | radius |
int | life |
bool | visible |
bool | infinite |
bool | foreground |
bool | background |
bool | hidden |
bool | trans |
bool | shadow |
bool | luminous |
Rect | screen_rect |
Scene * | scene |
char | name [32] |
Additional Inherited Members | |
Static Public Member Functions inherited from Graphic | |
static const char * | TYPENAME () |
static int | Nearer (Graphic *a, Graphic *b) |
static int | Farther (Graphic *a, Graphic *b) |
Static Protected Attributes inherited from Graphic | |
static int | id_key = 1 |
enum Grid::PLANE |
|
virtual |
|
virtual |
|
virtual |