Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

All systems now have macros for calling their instance (mutable and c…

…onst)
  • Loading branch information...
commit 310ed033c6d3c771c9dee04c9badc8b7843bb747 1 parent 42db581
Max Ockonal authored
7 include/Systems/GraphicSystem.hpp
View
@@ -12,13 +12,12 @@
#include <boost/foreach.hpp>
#include <boost/serialization/singleton.hpp>
-#include <Ogre.h>
-
using namespace boost::serialization;
using namespace std;
-//class GraphicSystem : public ISystem, public Ogre::Singleton<GraphicSystem>
-//class GraphicSystem : public ISystem, public singleton<GraphicSystem>
+#define graphicSystem (GraphicSystem::get_mutable_instance())
+#define graphicSystemConst (GraphicSystem::get_const_instance())
+
class GraphicSystem : public ISystem, public ISingleton<GraphicSystem>
{
protected:
3  include/Systems/GuiSystem.hpp
View
@@ -17,6 +17,9 @@
using namespace boost::serialization;
using namespace std;
+#define guiSystem (GuiSystem::get_mutable_instance())
+#define guiSystemConst (GuiSystem::get_const_instance())
+
class GuiSystem : public ISystem, public ISingleton<GuiSystem>
{
private:
3  include/Systems/InputSystem.hpp
View
@@ -21,6 +21,9 @@
using namespace boost::serialization;
using namespace Engine;
+#define inputSystem (InputSystem::get_mutable_instance())
+#define inputSystemConst (InputSystem::get_const_instance())
+
class InputSystem : public ISystem, public ISingleton<InputSystem>, public OIS::KeyListener, public OIS::MouseListener,
public Ogre::WindowEventListener
{
Please sign in to comment.
Something went wrong with that request. Please try again.