#include <TerrainObject.h>
|
| struct | Cell |
| | A cell as it is stored within the terrain. More...
|
| |
◆ TerrainObject() [1/4]
| TerrainObject::TerrainObject |
( |
| ) |
|
|
delete |
◆ TerrainObject() [2/4]
◆ TerrainObject() [3/4]
◆ ~TerrainObject()
| TerrainObject::~TerrainObject |
( |
| ) |
|
|
virtual |
◆ TerrainObject() [4/4]
| TerrainObject::TerrainObject |
( |
const char * |
heightMapFile, |
|
|
std::string |
textureKey, |
|
|
float |
sideLength, |
|
|
float |
maxHeight, |
|
|
int |
repeatU, |
|
|
int |
repeatV |
|
) |
| |
◆ CellMinMaxIndex()
| int TerrainObject::CellMinMaxIndex |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
◆ ComputeMinMax()
| void TerrainObject::ComputeMinMax |
( |
| ) |
|
◆ Deinitialize()
| void TerrainObject::Deinitialize |
( |
| ) |
|
◆ Draw()
| void TerrainObject::Draw |
( |
| ) |
|
|
overridevirtual |
Pure virtual function draw. Derived objects must override.
Implements Drawable.
◆ GetAltitude()
| float TerrainObject::GetAltitude |
( |
Vect |
pos | ) |
|
◆ GetCellDimension()
| int TerrainObject::GetCellDimension |
( |
| ) |
|
◆ GetMinMaxVects()
| void TerrainObject::GetMinMaxVects |
( |
int |
i, |
|
|
int |
j, |
|
|
Vect & |
outputMin, |
|
|
Vect & |
outputMax |
|
) |
| |
◆ GetNormal()
| Vect TerrainObject::GetNormal |
( |
Vect |
pos | ) |
|
◆ GetSideVertCount()
| int TerrainObject::GetSideVertCount |
( |
| ) |
|
Gets the number of side vertices.
- Returns
- The side vertical count.
◆ GetWorld()
| Matrix & TerrainObject::GetWorld |
( |
| ) |
|
◆ Initialize()
| void TerrainObject::Initialize |
( |
| ) |
|
Sets the terrain object up for drawing.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ PixelIndex()
| int TerrainObject::PixelIndex |
( |
int |
side, |
|
|
int |
i, |
|
|
int |
j |
|
) |
| |
|
private |
◆ PixelToFloat()
| float TerrainObject::PixelToFloat |
( |
unsigned char |
hval | ) |
|
|
private |
◆ SetWorld()
| void TerrainObject::SetWorld |
( |
Matrix |
world | ) |
|
◆ ShowCellsUnderCollidable()
| void TerrainObject::ShowCellsUnderCollidable |
( |
Collidable * |
colObject | ) |
|
◆ ShowLinePosition()
| void TerrainObject::ShowLinePosition |
( |
Vect & |
pos | ) |
|
◆ ShowNormal()
| void TerrainObject::ShowNormal |
( |
Frigate * |
theFrigate | ) |
|
◆ TriIndex()
| int TerrainObject::TriIndex |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
private |
◆ VertexIndex()
| int TerrainObject::VertexIndex |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
private |
◆ VisualizeAllCells()
| void TerrainObject::VisualizeAllCells |
( |
| ) |
|
Visualize all cell's AABB's.
This is an expensive operation that loops through all the cell's and pulls their Vects to visualize an AABB. Use only for debugging purposes. A small heightmap may be required.
◆ deltaLength
| float TerrainObject::deltaLength |
|
private |
◆ dimension
| float TerrainObject::dimension |
|
private |
◆ length
| int TerrainObject::length |
|
private |
◆ maxHeight
| float TerrainObject::maxHeight |
|
private |
◆ pGObjFT
| GraphicsObject_TextureFlat* TerrainObject::pGObjFT |
|
private |
◆ pModTerrain
| Model* TerrainObject::pModTerrain |
|
private |
◆ pObjWF
| GraphicsObject_WireframeConstantColor* TerrainObject::pObjWF |
|
private |
◆ pTriList
| TriangleIndex* TerrainObject::pTriList |
|
private |
◆ pVerts
| VertexStride_VUN* TerrainObject::pVerts |
|
private |
The vertices, only to be used at construction.
◆ SideVertCount
| int TerrainObject::SideVertCount |
|
private |
◆ TerrainCells
| std::vector<Cell> TerrainObject::TerrainCells |
|
private |
The cells of the terrain containing min/max vectors.
◆ WorldMat
| Matrix TerrainObject::WorldMat |
|
private |
The documentation for this class was generated from the following files: