mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
25 lines
545 B
C++
25 lines
545 B
C++
![]() |
HeightMap::HeightMap(Ogre::SceneNode* r)
|
||
|
: mTerrainSceneNode(r),
|
||
|
mQuadRoot(0),
|
||
|
mMorphingEnabled(true),
|
||
|
mTextureFadingEnabled(true),
|
||
|
mBaseLand(r)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
//----------------------------------------------
|
||
|
HeightMap::~HeightMap(){
|
||
|
delete mQuadRoot;
|
||
|
}
|
||
|
//----------------------------------------------
|
||
|
void HeightMap::create(){
|
||
|
mQuadRoot = new Quad(Quad::QL_ROOT, 0);
|
||
|
}
|
||
|
//----------------------------------------------
|
||
|
void HeightMap::update(Ogre::Real t){
|
||
|
assert(mQuadRoot);
|
||
|
mQuadRoot->update(t);
|
||
|
mBaseLand.update();
|
||
|
}
|
||
|
|