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.
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;
|
|
}
|
|
}
|
|
|