You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
835 B
C++
43 lines
835 B
C++
#ifndef OPENCS_VIEW_OVERLAYMASK_H
|
|
#define OPENCS_VIEW_OVERLAYMASK_H
|
|
|
|
#include <OgreRenderTargetListener.h>
|
|
|
|
namespace Ogre
|
|
{
|
|
class Viewport;
|
|
class RendertargetViewportEvent;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class CellCoordinates;
|
|
}
|
|
|
|
namespace CSVRender
|
|
{
|
|
class TextOverlay;
|
|
|
|
class OverlayMask : public Ogre::RenderTargetListener
|
|
{
|
|
|
|
std::map<CSMWorld::CellCoordinates, TextOverlay *> &mTextOverlays;
|
|
Ogre::Viewport* mViewport;
|
|
|
|
public:
|
|
|
|
OverlayMask(std::map<CSMWorld::CellCoordinates, TextOverlay *> &overlays,
|
|
Ogre::Viewport* viewport);
|
|
|
|
virtual ~OverlayMask();
|
|
|
|
void setViewport(Ogre::Viewport *viewport);
|
|
|
|
protected:
|
|
|
|
virtual void preViewportUpdate(const Ogre::RenderTargetViewportEvent &event);
|
|
};
|
|
}
|
|
|
|
#endif // OPENCS_VIEW_OVERLAYMASK_H
|