#include <TerrainPatch.h>
List of all members.
Public Member Functions |
| TerrainPatch (Terrain *terrain, const Bitmap *patch, const Rect &rect, const Point &p1, const Point &p2) |
| TerrainPatch (Terrain *terrain, const Rect &rect, const Point &p1, const Point &p2, double sea_level) |
virtual | ~TerrainPatch () |
virtual void | SelectDetail (Projector *projector) |
virtual void | Render (Video *video, DWORD flags) |
virtual int | CollidesWith (Graphic &o) |
double | Scale () const |
double | MountainScale () const |
double | SeaLevel () const |
double | MinHeight () const |
double | MaxHeight () const |
bool | IsWater () const |
void | UpdateSurfaceWaves (Vec3 &eyePos) |
void | SetScales (double scale, double mtnscale, double base) |
void | SetDetailLevel (int nd) |
virtual int | CheckRayIntersection (Point pt, Point vpn, double len, Point &ipt, bool treat_translucent_polys_as_solid=true) |
double | Height (double x, double y) const |
DWORD | BlendValue (double y) |
int | CalcLayer (Poly *p) |
void | Illuminate (Color ambient, List< Light > &lights) |
| Solid () |
virtual | ~Solid () |
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 Poly * | GetIntersectionPoly () const |
virtual void | DeletePrivateData () |
virtual void | InvalidateSurfaceData () |
virtual void | InvalidateSegmentData () |
| 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) |
Protected Types |
enum | { MAX_LOD = 8
} |
Additional Inherited Members |
enum | { NAMELEN = 64
} |
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
} |
static const char * | TYPENAME () |
static bool | IsCollisionEnabled () |
static void | EnableCollision (bool enable) |
static int | Nearer (Graphic *a, Graphic *b) |
static int | Farther (Graphic *a, Graphic *b) |
Detailed Description
Definition at line 31 of file TerrainPatch.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
TerrainPatch::TerrainPatch |
( |
Terrain * |
terrain, |
|
|
const Rect & |
rect, |
|
|
const Point & |
p1, |
|
|
const Point & |
p2, |
|
|
double |
sea_level |
|
) |
| |
TerrainPatch::~TerrainPatch |
( |
| ) |
|
|
virtual |
Member Function Documentation
DWORD TerrainPatch::BlendValue |
( |
double |
y | ) |
|
bool TerrainPatch::BuildDetailLevel |
( |
int |
level | ) |
|
|
protectedvirtual |
int TerrainPatch::CalcLayer |
( |
Poly * |
p | ) |
|
int TerrainPatch::CheckRayIntersection |
( |
Point |
pt, |
|
|
Point |
vpn, |
|
|
double |
len, |
|
|
Point & |
ipt, |
|
|
bool |
treat_translucent_polys_as_solid = true |
|
) |
| |
|
virtual |
int TerrainPatch::CollidesWith |
( |
Graphic & |
o | ) |
|
|
virtual |
double TerrainPatch::Height |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
void TerrainPatch::Illuminate |
( |
Color |
ambient, |
|
|
List< Light > & |
lights |
|
) |
| |
bool TerrainPatch::IsWater |
( |
| ) |
const |
|
inline |
double TerrainPatch::MaxHeight |
( |
| ) |
const |
|
inline |
double TerrainPatch::MinHeight |
( |
| ) |
const |
|
inline |
double TerrainPatch::MountainScale |
( |
| ) |
const |
|
inline |
void TerrainPatch::Render |
( |
Video * |
video, |
|
|
DWORD |
flags |
|
) |
| |
|
virtual |
double TerrainPatch::Scale |
( |
| ) |
const |
|
inline |
double TerrainPatch::SeaLevel |
( |
| ) |
const |
|
inline |
void TerrainPatch::SelectDetail |
( |
Projector * |
projector | ) |
|
|
virtual |
void TerrainPatch::SetDetailLevel |
( |
int |
nd | ) |
|
void TerrainPatch::SetScales |
( |
double |
scale, |
|
|
double |
mtnscale, |
|
|
double |
base |
|
) |
| |
void TerrainPatch::UpdateSurfaceWaves |
( |
Vec3 & |
eyePos | ) |
|
Member Data Documentation
double TerrainPatch::base |
|
protected |
float* TerrainPatch::heights |
|
protected |
int TerrainPatch::max_detail |
|
protected |
float TerrainPatch::max_height |
|
protected |
float TerrainPatch::min_height |
|
protected |
double TerrainPatch::mtnscale |
|
protected |
int TerrainPatch::ndetail |
|
protected |
int TerrainPatch::patch_size |
|
protected |
double TerrainPatch::scale |
|
protected |
double TerrainPatch::size |
|
protected |
int TerrainPatch::terrain_width |
|
protected |
Water* TerrainPatch::water |
|
protected |
The documentation for this class was generated from the following files: