Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Terrain Class Reference

#include <Terrain.h>

List of all members.

Public Member Functions

 Terrain (TerrainRegion *region)
virtual ~Terrain ()
virtual void Activate (Scene &scene)
virtual void Deactivate (Scene &scene)
virtual void SelectDetail (Projector *proj)
virtual void BuildTerrain ()
virtual void BuildNormals ()
virtual void ExecFrame (double seconds)
double Height (double x, double y) const
const Vec3BNormals () const
TerrainRegionGetRegion ()
double FogFade () const
BitmapTexture ()
BitmapApronTexture ()
BitmapWaterTexture ()
Bitmap ** EnvironmentTexture ()
BitmapTileTexture (int n)
BitmapCloudTexture (int n)
BitmapShadeTexture (int n)
BitmapDetailTexture (int n)
WaterGetWater (int level)
List< TerrainLayer > & GetLayers ()
bool IsFirstPatch (TerrainPatch *p) const

Static Public Member Functions

static int DetailLevel ()
static void SetDetailLevel (int detail)

Protected Attributes

TerrainRegionregion
TerrainPatch ** patches
TerrainPatch ** water_patches
Water ** water
TerrainApron ** aprons
TerrainClouds ** clouds
int nclouds
Bitmap terrain_patch
Bitmap terrain_apron
Bitmapterrain_texture
Bitmapapron_texture
Bitmapwater_texture
Bitmapenv_texture [6]
Bitmaptiles [256]
Bitmapcloud_texture [2]
Bitmapshade_texture [2]
Bitmapnoise_texture [2]
Vec3Bterrain_normals
List< TerrainLayerlayers
Text datapath
double scale
double mtnscale
int subdivisions
int patch_size
DWORD detail_frame
double fog_fade

Static Protected Attributes

static int detail_level = 3

Detailed Description

Definition at line 47 of file Terrain.h.


Constructor & Destructor Documentation

Terrain::Terrain ( TerrainRegion region)

Definition at line 39 of file Terrain.cpp.

Terrain::~Terrain ( )
virtual

Definition at line 78 of file Terrain.cpp.


Member Function Documentation

void Terrain::Activate ( Scene scene)
virtual

Definition at line 344 of file Terrain.cpp.

Bitmap* Terrain::ApronTexture ( )
inline

Definition at line 69 of file Terrain.h.

void Terrain::BuildNormals ( )
virtual

Definition at line 275 of file Terrain.cpp.

void Terrain::BuildTerrain ( )
virtual

Definition at line 119 of file Terrain.cpp.

Bitmap* Terrain::CloudTexture ( int  n)
inline

Definition at line 73 of file Terrain.h.

void Terrain::Deactivate ( Scene scene)
virtual

Definition at line 385 of file Terrain.cpp.

static int Terrain::DetailLevel ( )
inlinestatic

Definition at line 81 of file Terrain.h.

Bitmap* Terrain::DetailTexture ( int  n)
inline

Definition at line 75 of file Terrain.h.

Bitmap** Terrain::EnvironmentTexture ( )
inline

Definition at line 71 of file Terrain.h.

void Terrain::ExecFrame ( double  seconds)
virtual

Definition at line 438 of file Terrain.cpp.

double Terrain::FogFade ( ) const
inline

Definition at line 66 of file Terrain.h.

List<TerrainLayer>& Terrain::GetLayers ( )
inline

Definition at line 77 of file Terrain.h.

TerrainRegion* Terrain::GetRegion ( )
inline

Definition at line 65 of file Terrain.h.

Water* Terrain::GetWater ( int  level)
inline

Definition at line 76 of file Terrain.h.

double Terrain::Height ( double  x,
double  y 
) const

Definition at line 510 of file Terrain.cpp.

bool Terrain::IsFirstPatch ( TerrainPatch p) const

Definition at line 558 of file Terrain.cpp.

const Vec3B* Terrain::Normals ( ) const
inline

Definition at line 64 of file Terrain.h.

void Terrain::SelectDetail ( Projector proj)
virtual

Definition at line 451 of file Terrain.cpp.

void Terrain::SetDetailLevel ( int  detail)
static

Definition at line 543 of file Terrain.cpp.

Bitmap* Terrain::ShadeTexture ( int  n)
inline

Definition at line 74 of file Terrain.h.

Bitmap* Terrain::Texture ( )
inline

Definition at line 68 of file Terrain.h.

Bitmap* Terrain::TileTexture ( int  n)
inline

Definition at line 72 of file Terrain.h.

Bitmap* Terrain::WaterTexture ( )
inline

Definition at line 70 of file Terrain.h.


Member Data Documentation

Bitmap* Terrain::apron_texture
protected

Definition at line 96 of file Terrain.h.

TerrainApron** Terrain::aprons
protected

Definition at line 89 of file Terrain.h.

Bitmap* Terrain::cloud_texture[2]
protected

Definition at line 100 of file Terrain.h.

TerrainClouds** Terrain::clouds
protected

Definition at line 90 of file Terrain.h.

Text Terrain::datapath
protected

Definition at line 107 of file Terrain.h.

DWORD Terrain::detail_frame
protected

Definition at line 112 of file Terrain.h.

int Terrain::detail_level = 3
staticprotected

Definition at line 115 of file Terrain.h.

Bitmap* Terrain::env_texture[6]
protected

Definition at line 98 of file Terrain.h.

double Terrain::fog_fade
protected

Definition at line 113 of file Terrain.h.

List<TerrainLayer> Terrain::layers
protected

Definition at line 105 of file Terrain.h.

double Terrain::mtnscale
protected

Definition at line 109 of file Terrain.h.

int Terrain::nclouds
protected

Definition at line 91 of file Terrain.h.

Bitmap* Terrain::noise_texture[2]
protected

Definition at line 102 of file Terrain.h.

int Terrain::patch_size
protected

Definition at line 111 of file Terrain.h.

TerrainPatch** Terrain::patches
protected

Definition at line 86 of file Terrain.h.

TerrainRegion* Terrain::region
protected

Definition at line 85 of file Terrain.h.

double Terrain::scale
protected

Definition at line 108 of file Terrain.h.

Bitmap* Terrain::shade_texture[2]
protected

Definition at line 101 of file Terrain.h.

int Terrain::subdivisions
protected

Definition at line 110 of file Terrain.h.

Bitmap Terrain::terrain_apron
protected

Definition at line 94 of file Terrain.h.

Vec3B* Terrain::terrain_normals
protected

Definition at line 104 of file Terrain.h.

Bitmap Terrain::terrain_patch
protected

Definition at line 93 of file Terrain.h.

Bitmap* Terrain::terrain_texture
protected

Definition at line 95 of file Terrain.h.

Bitmap* Terrain::tiles[256]
protected

Definition at line 99 of file Terrain.h.

Water** Terrain::water
protected

Definition at line 88 of file Terrain.h.

TerrainPatch** Terrain::water_patches
protected

Definition at line 87 of file Terrain.h.

Bitmap* Terrain::water_texture
protected

Definition at line 97 of file Terrain.h.


The documentation for this class was generated from the following files: