Starshatter_Open
Open source Starshatter engine
|
#include <Solid.h>
Public Types | |
enum | { NAMELEN = 64 } |
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 | |
Solid () | |
virtual | ~Solid () |
virtual void | Render (Video *video, DWORD flags) |
virtual void | SelectDetail (Projector *p) |
virtual void | ProjectScreenRect (Projector *p) |
virtual void | Update () |
Model * | GetModel () const |
void | GetAllTextures (List< Bitmap > &textures) |
virtual bool | IsDynamic () const |
virtual void | SetDynamic (bool d) |
virtual void | SetLuminous (bool l) |
virtual void | SetOrientation (const Matrix &o) |
virtual void | SetOrientation (const Solid &match) |
const Matrix & | Orientation () const |
float | Roll () const |
float | Pitch () const |
float | Yaw () const |
virtual bool | IsSolid () const |
virtual void | CreateShadows (int nlights=1) |
virtual void | UpdateShadows (List< Light > &lights) |
List< Shadow > & | GetShadows () |
bool | Load (const char *mag_file, double scale=1.0) |
bool | Load (ModelFile *loader, double scale=1.0) |
void | UseModel (Model *model) |
void | ClearModel () |
bool | Rescale (double scale) |
virtual int | CollidesWith (Graphic &o) |
virtual int | CheckRayIntersection (Point pt, Point vpn, double len, Point &ipt, bool treat_translucent_polys_as_solid=true) |
virtual Poly * | GetIntersectionPoly () const |
virtual void | DeletePrivateData () |
virtual void | InvalidateSurfaceData () |
virtual void | InvalidateSegmentData () |
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 |
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 bool | Translucent () const |
virtual bool | CastsShadow () const |
virtual void | SetShadow (bool s) |
virtual bool | IsSprite () const |
virtual bool | IsBolt () const |
virtual bool | IsQuad () const |
const Rect & | ScreenRect () const |
virtual Scene * | GetScene () const |
virtual void | SetScene (Scene *s) |
virtual bool | CheckVisibility (Projector &projector) |
Static Public Member Functions | |
static const char * | TYPENAME () |
static bool | IsCollisionEnabled () |
static void | EnableCollision (bool enable) |
Static Public Member Functions inherited from Graphic | |
static int | Nearer (Graphic *a, Graphic *b) |
static int | Farther (Graphic *a, Graphic *b) |
Protected Attributes | |
Model * | model |
bool | own_model |
float | roll |
float | pitch |
float | yaw |
Matrix | orientation |
Poly * | intersection_poly |
List< Shadow > | shadows |
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 Protected Attributes inherited from Graphic | |
static int | id_key = 1 |
|
virtual |
Reimplemented from Graphic.
Reimplemented in PlanetRep, TerrainPatch, TerrainApron, and TerrainHaze.
|
virtual |
Reimplemented from Graphic.
Reimplemented in TerrainPatch, and TerrainApron.
|
inlinevirtual |
|
inlinevirtual |
bool Solid::Load | ( | const char * | mag_file, |
double | scale = 1.0 |
||
) |
bool Solid::Load | ( | ModelFile * | loader, |
double | scale = 1.0 |
||
) |
|
virtual |
|
virtual |
Reimplemented from Graphic.
Reimplemented in PlanetRep, TerrainPatch, ShipSolid, TerrainApron, TerrainHaze, and ShieldRep.
|
virtual |
Reimplemented in TerrainPatch.
|
virtual |
|
virtual |
|
inlinestatic |
|
virtual |
Reimplemented from Graphic.
Reimplemented in TerrainApron, and Hoop.