OpenMW
Public Member Functions | Private Attributes
MWRender::GlobalMap Class Reference

#include <globalmap.hpp>

List of all members.

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

Constructor & Destructor Documentation

MWRender::GlobalMap::GlobalMap ( const std::string &  cacheDir)

Member Function Documentation

void MWRender::GlobalMap::cellTopLeftCornerToImageSpace ( int  x,
int  y,
float &  imageX,
float &  imageY 
)
void MWRender::GlobalMap::exploreCell ( int  cellX,
int  cellY 
)
void MWRender::GlobalMap::render ( Loading::Listener loadingListener)
void MWRender::GlobalMap::worldPosToImageSpace ( float  x,
float  z,
float &  imageX,
float &  imageY 
)
Parameters:
xx ogre coords
zz ogre coords

Member Data Documentation

std::string MWRender::GlobalMap::mCacheDir [private]
std::vector<Ogre::uchar> MWRender::GlobalMap::mExploredBuffer [private]
std::vector< std::pair<int,int> > MWRender::GlobalMap::mExploredCells [private]
Ogre::TexturePtr MWRender::GlobalMap::mOverlayTexture [private]

The documentation for this class was generated from the following files: