#include <globalmap.hpp>
|
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) |
|
MWRender::GlobalMap::GlobalMap |
( |
osg::Group * |
root | ) |
|
MWRender::GlobalMap::~GlobalMap |
( |
| ) |
|
void MWRender::GlobalMap::cellTopLeftCornerToImageSpace |
( |
int |
x, |
|
|
int |
y, |
|
|
float & |
imageX, |
|
|
float & |
imageY |
|
) |
| |
void MWRender::GlobalMap::cleanupCameras |
( |
| ) |
|
Removes cameras that have already been rendered. Should be called every frame to ensure that we do not render the same map more than once. Note, this cleanup is difficult to implement in an automated fashion, since we can't alter the scene graph structure from within an update callback.
void MWRender::GlobalMap::clear |
( |
| ) |
|
void MWRender::GlobalMap::exploreCell |
( |
int |
cellX, |
|
|
int |
cellY, |
|
|
osg::ref_ptr< osg::Texture2D > |
localMapTexture |
|
) |
| |
osg::ref_ptr< osg::Texture2D > MWRender::GlobalMap::getBaseTexture |
( |
| ) |
|
int MWRender::GlobalMap::getCellSize |
( |
| ) |
const |
|
inline |
int MWRender::GlobalMap::getHeight |
( |
| ) |
const |
|
inline |
osg::ref_ptr< osg::Texture2D > MWRender::GlobalMap::getOverlayTexture |
( |
| ) |
|
int MWRender::GlobalMap::getWidth |
( |
| ) |
const |
|
inline |
void MWRender::GlobalMap::markForRemoval |
( |
osg::Camera * |
camera | ) |
|
Mark a camera for cleanup in the next update. For internal use only.
void MWRender::GlobalMap::removeCamera |
( |
osg::Camera * |
cam | ) |
|
void MWRender::GlobalMap::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 |
|
) |
| |
|
private |
Request rendering a 2d quad onto mOverlayTexture. x, y, width and height are the destination coordinates (top-left coordinate origin)
- Parameters
-
cpuCopy | copy the resulting render onto mOverlayImage as well? |
void MWRender::GlobalMap::worldPosToImageSpace |
( |
float |
x, |
|
|
float |
z, |
|
|
float & |
imageX, |
|
|
float & |
imageY |
|
) |
| |
osg::ref_ptr<osg::Texture2D> MWRender::GlobalMap::mAlphaTexture |
|
private |
osg::ref_ptr<osg::Texture2D> MWRender::GlobalMap::mBaseTexture |
|
private |
int MWRender::GlobalMap::mCellSize |
|
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 |
osg::ref_ptr<osg::Image> MWRender::GlobalMap::mOverlayImage |
|
private |
osg::ref_ptr<osg::Texture2D> MWRender::GlobalMap::mOverlayTexture |
|
private |
osg::ref_ptr<osg::Group> MWRender::GlobalMap::mRoot |
|
private |
int MWRender::GlobalMap::mWidth |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/globalmap.hpp
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/globalmap.cpp