summaryrefslogtreecommitdiff
path: root/engine/xe_engine.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--engine/xe_engine.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/xe_engine.hpp b/engine/xe_engine.hpp
index 28974cb..dc534ea 100644
--- a/engine/xe_engine.hpp
+++ b/engine/xe_engine.hpp
@@ -29,6 +29,7 @@ class Engine {
Input& getInput() {return xeInput;}
Camera& getCamera() {return xeCamera;}
+ Device& getDevice() {return xeDevice;}
std::shared_ptr<Model> loadModelFromFile(const std::string &filename);
std::shared_ptr<Model> loadModelFromData(std::vector<float> vertexData, uint32_t vertexSize, std::vector<uint32_t> indices);
@@ -41,6 +42,8 @@ class Engine {
bool poll();
float getFrameTime() { return frameTime; }
+ static Engine* getInstance();
+
private:
void loadDescriptorPool();