mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 00:45:34 +00:00
37 lines
800 B
C++
37 lines
800 B
C++
|
#ifndef OPENCS_VIEW_OVERLAYSYSTEM_H
|
||
|
#define OPENCS_VIEW_OVERLAYSYSTEM_H
|
||
|
|
||
|
#include <OgreOverlaySystem.h>
|
||
|
|
||
|
namespace CSVRender
|
||
|
{
|
||
|
class OverlaySystem
|
||
|
{
|
||
|
Ogre::OverlaySystem *mOverlaySystem;
|
||
|
|
||
|
OverlaySystem() {
|
||
|
mOverlaySystem = new Ogre::OverlaySystem();
|
||
|
}
|
||
|
|
||
|
~OverlaySystem() {
|
||
|
delete mOverlaySystem;
|
||
|
}
|
||
|
|
||
|
OverlaySystem(OverlaySystem const&);
|
||
|
void operator=(OverlaySystem const&);
|
||
|
|
||
|
public:
|
||
|
|
||
|
static OverlaySystem &instance() {
|
||
|
static OverlaySystem mInstance;
|
||
|
return mInstance;
|
||
|
}
|
||
|
|
||
|
Ogre::OverlaySystem *get() {
|
||
|
return mOverlaySystem;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif // OPENCS_VIEW_OVERLAYSYSTEM_H
|