summaryrefslogtreecommitdiff
path: root/engine/xe_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engine/xe_engine.cpp')
-rw-r--r--engine/xe_engine.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/xe_engine.cpp b/engine/xe_engine.cpp
index f28bbce..37cba41 100644
--- a/engine/xe_engine.cpp
+++ b/engine/xe_engine.cpp
@@ -2,6 +2,12 @@
namespace xe {
+static Engine* _instance;
+
+Engine* Engine::getInstance() {
+ return _instance;
+}
+
Engine::Engine(int width, int height, std::string name) : xeWindow{width, height, name},
xeDevice{xeWindow},
xeRenderer{xeWindow, xeDevice},
@@ -9,8 +15,8 @@ Engine::Engine(int width, int height, std::string name) : xeWindow{width, height
xeInput{xeWindow} {
loadDescriptorPool();
alutInit(0, NULL);
-
std::cout << "Audio device: " << alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER) << "\n";
+ _instance = this;
};
Engine::~Engine() {