Don't use MWRender namespace in common terrain components

pull/541/head
bzzt 6 years ago committed by Capostrophic
parent 5ffb40e8ba
commit 5bce3cbc68

@ -7,7 +7,7 @@
#include "world.hpp"
#include "../esm/loadland.hpp"
namespace MWRender
namespace Terrain
{
CellBorder::CellBorder(Terrain::World *world, osg::Group *root, int borderMask):

@ -7,10 +7,7 @@
namespace Terrain
{
class World;
}
namespace MWRender
{
/**
* @Brief Handles the debug cell borders.
*/

@ -84,7 +84,7 @@ void TerrainGrid::loadCell(int x, int y)
void TerrainGrid::unloadCell(int x, int y)
{
MWRender::CellBorder::CellGrid::iterator it = mGrid.find(std::make_pair(x,y));
CellBorder::CellGrid::iterator it = mGrid.find(std::make_pair(x,y));
if (it == mGrid.end())
return;

@ -33,7 +33,7 @@ namespace Terrain
// split each ESM::Cell into mNumSplits*mNumSplits terrain chunks
unsigned int mNumSplits;
MWRender::CellBorder::CellGrid mGrid;
CellBorder::CellGrid mGrid;
};
}

@ -47,7 +47,7 @@ World::World(osg::Group* parent, osg::Group* compileRoot, Resource::ResourceSyst
mTextureManager.reset(new TextureManager(mResourceSystem->getSceneManager()));
mChunkManager.reset(new ChunkManager(mStorage, mResourceSystem->getSceneManager(), mTextureManager.get(), mCompositeMapRenderer));
mCellBorder.reset(new MWRender::CellBorder(this,mTerrainRoot.get(),borderMask));
mCellBorder.reset(new CellBorder(this,mTerrainRoot.get(),borderMask));
mResourceSystem->addResourceManager(mChunkManager.get());
mResourceSystem->addResourceManager(mTextureManager.get());

@ -116,7 +116,7 @@ namespace Terrain
std::unique_ptr<TextureManager> mTextureManager;
std::unique_ptr<ChunkManager> mChunkManager;
std::unique_ptr<MWRender::CellBorder> mCellBorder;
std::unique_ptr<CellBorder> mCellBorder;
bool mBorderVisible;

Loading…
Cancel
Save