qmlfrontend/engine_instance.h
changeset 14295 92e5682810d4
parent 14276 1aac8a62be6f
child 14377 b6824a53d4b1
--- a/qmlfrontend/engine_instance.h	Sat Nov 24 21:57:01 2018 +0100
+++ b/qmlfrontend/engine_instance.h	Sat Nov 24 23:51:45 2018 +0100
@@ -4,16 +4,20 @@
 #include "engine_interface.h"
 
 #include <QObject>
+#include <QOpenGLContext>
 
 #include "game_config.h"
 
 class EngineInstance : public QObject {
   Q_OBJECT
  public:
-  explicit EngineInstance(QObject *parent = nullptr);
+  explicit EngineInstance(QObject* parent = nullptr);
   ~EngineInstance();
 
-  void sendConfig(const GameConfig &config);
+  void sendConfig(const GameConfig& config);
+  void advance(quint32 ticks);
+  void renderFrame();
+  void setOpenGLContext(QOpenGLContext* context);
   Engine::PreviewInfo generatePreview();
 
  signals:
@@ -21,7 +25,7 @@
  public slots:
 
  private:
-  Engine::EngineInstance *m_instance;
+  Engine::EngineInstance* m_instance;
 };
 
 #endif  // ENGINEINSTANCE_H