|
|
|
@ -209,8 +209,10 @@ namespace MWRender
|
|
|
|
|
|
|
|
|
|
if (!localMapTexture.isNull())
|
|
|
|
|
{
|
|
|
|
|
int mapWidth = localMapTexture->getWidth();
|
|
|
|
|
int mapHeight = localMapTexture->getHeight();
|
|
|
|
|
mOverlayTexture->load();
|
|
|
|
|
mOverlayTexture->getBuffer()->blit(localMapTexture->getBuffer(), Ogre::Image::Box(0,0,512,512),
|
|
|
|
|
mOverlayTexture->getBuffer()->blit(localMapTexture->getBuffer(), Ogre::Image::Box(0,0,mapWidth,mapHeight),
|
|
|
|
|
Ogre::Image::Box(originX,originY,originX+mCellSize,originY+mCellSize));
|
|
|
|
|
|
|
|
|
|
Ogre::Image backup;
|
|
|
|
@ -218,7 +220,7 @@ namespace MWRender
|
|
|
|
|
data.resize(mCellSize*mCellSize*4, 0);
|
|
|
|
|
backup.loadDynamicImage(&data[0], mCellSize, mCellSize, Ogre::PF_A8B8G8R8);
|
|
|
|
|
|
|
|
|
|
localMapTexture->getBuffer()->blitToMemory(Ogre::Image::Box(0,0,512,512), backup.getPixelBox());
|
|
|
|
|
localMapTexture->getBuffer()->blitToMemory(Ogre::Image::Box(0,0,mapWidth,mapHeight), backup.getPixelBox());
|
|
|
|
|
|
|
|
|
|
for (int x=0; x<mCellSize; ++x)
|
|
|
|
|
for (int y=0; y<mCellSize; ++y)
|
|
|
|
|