mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
35 lines
657 B
C++
35 lines
657 B
C++
#include "overlaysystem.hpp"
|
|
|
|
#include <cassert>
|
|
|
|
#include <OgreOverlaySystem.h>
|
|
|
|
namespace CSVRender
|
|
{
|
|
OverlaySystem *OverlaySystem::mOverlaySystemInstance = 0;
|
|
|
|
OverlaySystem::OverlaySystem()
|
|
{
|
|
assert(!mOverlaySystemInstance);
|
|
mOverlaySystemInstance = this;
|
|
mOverlaySystem = new Ogre::OverlaySystem();
|
|
}
|
|
|
|
OverlaySystem::~OverlaySystem()
|
|
{
|
|
delete mOverlaySystem;
|
|
}
|
|
|
|
OverlaySystem &OverlaySystem::instance()
|
|
{
|
|
assert(mOverlaySystemInstance);
|
|
return *mOverlaySystemInstance;
|
|
}
|
|
|
|
Ogre::OverlaySystem *OverlaySystem::get()
|
|
{
|
|
return mOverlaySystem;
|
|
}
|
|
}
|
|
|