OpenMW
|
#include <globalmap.hpp>
Public Member Functions | |
GlobalMap (const std::string &cacheDir) | |
void | render (Loading::Listener *loadingListener) |
int | getWidth () |
int | getHeight () |
void | worldPosToImageSpace (float x, float z, float &imageX, float &imageY) |
void | cellTopLeftCornerToImageSpace (int x, int y, float &imageX, float &imageY) |
void | exploreCell (int cellX, int cellY) |
Private Attributes | |
std::string | mCacheDir |
std::vector< std::pair< int, int > > | mExploredCells |
Ogre::TexturePtr | mOverlayTexture |
std::vector< Ogre::uchar > | mExploredBuffer |
int | mWidth |
int | mHeight |
int | mMinX |
int | mMaxX |
int | mMinY |
int | mMaxY |
MWRender::GlobalMap::GlobalMap | ( | const std::string & | cacheDir | ) |
void MWRender::GlobalMap::cellTopLeftCornerToImageSpace | ( | int | x, |
int | y, | ||
float & | imageX, | ||
float & | imageY | ||
) |
void MWRender::GlobalMap::exploreCell | ( | int | cellX, |
int | cellY | ||
) |
int MWRender::GlobalMap::getHeight | ( | ) | [inline] |
int MWRender::GlobalMap::getWidth | ( | ) | [inline] |
void MWRender::GlobalMap::render | ( | Loading::Listener * | loadingListener | ) |
void MWRender::GlobalMap::worldPosToImageSpace | ( | float | x, |
float | z, | ||
float & | imageX, | ||
float & | imageY | ||
) |
x | x ogre coords |
z | z ogre coords |
std::string MWRender::GlobalMap::mCacheDir [private] |
std::vector<Ogre::uchar> MWRender::GlobalMap::mExploredBuffer [private] |
std::vector< std::pair<int,int> > MWRender::GlobalMap::mExploredCells [private] |
int MWRender::GlobalMap::mHeight [private] |
int MWRender::GlobalMap::mMaxX [private] |
int MWRender::GlobalMap::mMaxY [private] |
int MWRender::GlobalMap::mMinX [private] |
int MWRender::GlobalMap::mMinY [private] |
Ogre::TexturePtr MWRender::GlobalMap::mOverlayTexture [private] |
int MWRender::GlobalMap::mWidth [private] |