List of all members.
Classes |
struct | STreeNodeData |
Public Member Functions |
| Terrain (const video::SHeightMapTexture &HeightMap, const dim::size2di &Resolution, s32 GeoMIPLevels) |
virtual | ~Terrain () |
virtual void | render () |
void | changeHeightMap (const video::SHeightMapTexture &HeightMap, const dim::size2di &Resolution, s32 GeoMIPLevels) |
dim::size2di | getResolution () const |
video::MeshBuffer * | getTextureReferenceMesh () |
Protected Member Functions |
void | init () |
void | clear () |
void | createQuadTree (QuadTreeNode *Node, s32 &MIPLevel, dim::point2di CurPos) |
void | createTreeNodeMesh (QuadTreeNode *Node, STreeNodeData *NodeData, const dim::point2di &CurPos) |
void | selectTreeNodeMesh (QuadTreeNode *Node) |
void | renderTreeNodeMesh (QuadTreeNode *Node) |
bool | deformTreeNodeMesh (QuadTreeNode *Node, const dim::point2df &Pos) |
s32 | getNodeLevel (const QuadTreeNode *Node, const dim::point2df &Pos) |
s32 | getVertexIndex (s32 x, s32 y) const |
bool | checkFurstumCulling (const scene::ViewFrustum &Frustum, const dim::matrix4f &Transformation, const dim::aabbox3df &BoundBox) const |
Protected Attributes |
video::SHeightMapTexture | HeightMap_ |
dim::size2di | Resolution_ |
dim::size2di | MeshResolution_ |
s32 | GeoMIPLevels_ |
QuadTreeNode * | RootTreeNode_ |
video::MeshBuffer * | MeshTexReference_ |
s32 | RenderModeListSize_ |
std::vector< QuadTreeNode * > | RenderNodeList_ |
dim::matrix4f | GlobalTerrainTransformation_ |
dim::vector3df | GlobalCamPosition_ |
Friends |
void | clbTerrainTreeNodeDestructor (TreeNode *Node) |
Detailed Description
Terrain class assumes the work of mesh LOD (level-of-detail) for the model-patches. Used are quad-trees.
Constructor & Destructor Documentation
sp::scene::Terrain::~Terrain |
( |
|
) |
[virtual] |
Member Function Documentation
void sp::scene::Terrain::clear |
( |
|
) |
[protected] |
dim::size2di sp::scene::Terrain::getResolution |
( |
|
) |
const [inline] |
s32 sp::scene::Terrain::getVertexIndex |
( |
s32 |
x, |
|
|
s32 |
y | |
|
) |
| | const [inline, protected] |
void sp::scene::Terrain::init |
( |
|
) |
[protected] |
void sp::scene::Terrain::render |
( |
|
) |
[virtual] |
Renders the object. In this case rendering does not only mean drawing a 3d mesh. It can also be a light source.
- Returns:
- True if the object has been rendered. Otherwise the object has been sorted out by frustum culling.
Implements sp::scene::MaterialNode.
void sp::scene::Terrain::renderTreeNodeMesh |
( |
QuadTreeNode * |
Node |
) |
[protected] |
void sp::scene::Terrain::selectTreeNodeMesh |
( |
QuadTreeNode * |
Node |
) |
[protected] |
Friends And Related Function Documentation
void clbTerrainTreeNodeDestructor |
( |
TreeNode * |
Node |
) |
[friend] |
Member Data Documentation
The documentation for this class was generated from the following files:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/spSceneTerrain.hpp
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/spSceneTerrain.cpp