1 #ifndef GAME_RENDER_GLOBALMAP_H
2 #define GAME_RENDER_GLOBALMAP_H
47 void exploreCell (
int cellX,
int cellY, osg::ref_ptr<osg::Texture2D> localMapTexture);
79 float srcLeft = 0.f,
float srcTop = 0.f,
float srcRight = 1.f,
float srcBottom = 1.f);
int mWidth
Definition: globalmap.hpp:119
int getCellSize() const
Definition: globalmap.hpp:41
void exploreCell(int cellX, int cellY, osg::ref_ptr< osg::Texture2D > localMapTexture)
Definition: globalmap.cpp:347
GlobalMap(osg::Group *root)
Definition: globalmap.cpp:98
int mX
Definition: globalmap.hpp:99
osg::ref_ptr< osg::Image > mImage
Definition: globalmap.hpp:98
int mY
Definition: globalmap.hpp:99
osg::ref_ptr< osg::Texture2D > getOverlayTexture()
Definition: globalmap.cpp:531
int mMaxY
Definition: globalmap.hpp:122
void requestOverlayTextureUpdate(int x, int y, int width, int height, osg::ref_ptr< osg::Texture2D > texture, bool clear, bool cpuCopy, float srcLeft=0.f, float srcTop=0.f, float srcRight=1.f, float srcBottom=1.f)
Definition: globalmap.cpp:262
int mMinY
Definition: globalmap.hpp:122
~GlobalMap()
Definition: globalmap.cpp:109
CameraVector mCamerasPendingRemoval
Definition: globalmap.hpp:88
Definition: loadinglistener.hpp:8
void cleanupCameras()
Definition: globalmap.cpp:548
void markForRemoval(osg::Camera *camera)
Definition: globalmap.cpp:536
std::vector< std::pair< int, int > > mExploredCells
Definition: globalmap.hpp:107
void write(ESM::GlobalMap &map)
Definition: globalmap.cpp:390
osg::ref_ptr< osg::Texture2D > getBaseTexture()
Definition: globalmap.cpp:526
int mMaxX
Definition: globalmap.hpp:122
void clear()
Clears the overlay.
Definition: globalmap.cpp:361
CameraVector mActiveCameras
Definition: globalmap.hpp:86
int mCellSize
Definition: globalmap.hpp:81
std::vector< ImageDest > ImageDestVector
Definition: globalmap.hpp:103
std::vector< osg::ref_ptr< osg::Camera > > CameraVector
Definition: globalmap.hpp:85
int mHeight
Definition: globalmap.hpp:120
osg::ref_ptr< osg::Texture2D > mOverlayTexture
Definition: globalmap.hpp:114
osg::ref_ptr< osg::Image > mOverlayImage
Definition: globalmap.hpp:117
<
Definition: globalmap.hpp:15
void removeCamera(osg::Camera *cam)
Definition: globalmap.cpp:570
osg::ref_ptr< osg::Texture2D > mAlphaTexture
Definition: globalmap.hpp:110
osg::ref_ptr< osg::Group > mRoot
Definition: globalmap.hpp:83
int getHeight() const
Definition: globalmap.hpp:39
void worldPosToImageSpace(float x, float z, float &imageX, float &imageY)
Definition: globalmap.cpp:247
ImageDestVector mPendingImageDest
Definition: globalmap.hpp:105
void cellTopLeftCornerToImageSpace(int x, int y, float &imageX, float &imageY)
Definition: globalmap.cpp:254
int mMinX
Definition: globalmap.hpp:122
void read(ESM::GlobalMap &map)
Definition: globalmap.cpp:430
void render(Loading::Listener *loadingListener)
Definition: globalmap.cpp:117
ImageDest()
Definition: globalmap.hpp:92
osg::ref_ptr< osg::Texture2D > mBaseTexture
Definition: globalmap.hpp:109
int mFramesUntilDone
Definition: globalmap.hpp:100
int getWidth() const
Definition: globalmap.hpp:38
Definition: globalmap.hpp:90
Definition: globalmap.hpp:30