forked from mirror/openmw-tes3mp
2ac9503854
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@113 ea6a568a-9f4f-0410-981a-c910a81bb256
35 lines
840 B
C++
35 lines
840 B
C++
Terrain::Terrain(Ogre::SceneNode* r)
|
|
: mTerrainSceneNode(r),
|
|
mQuadRoot(0),
|
|
mMorphingEnabled(true),
|
|
mTextureFadingEnabled(true),
|
|
mBaseLand(r)
|
|
{
|
|
|
|
}
|
|
//----------------------------------------------
|
|
Terrain::~Terrain(){
|
|
delete mQuadRoot;
|
|
}
|
|
//----------------------------------------------
|
|
void Terrain::create(){
|
|
mQuadRoot = new Quad(Quad::QL_ROOT, 0);
|
|
}
|
|
//----------------------------------------------
|
|
void Terrain::update(Ogre::Real t){
|
|
assert(mQuadRoot);
|
|
mQuadRoot->update(t);
|
|
mBaseLand.update();
|
|
}
|
|
//----------------------------------------------
|
|
int Terrain::getMaxDepth(){
|
|
return g_heightMap->getMaxDepth();
|
|
}
|
|
/*
|
|
//----------------------------------------------
|
|
void Terrain::reload(){
|
|
delete mQuadRoot;
|
|
mQuadRoot = new Quad(Quad::QL_ROOT, 0);
|
|
}
|
|
//----------------------------------------------
|
|
*/
|