qmlfrontend/engine_instance.h
changeset 14378 4409344db447
parent 14377 b6824a53d4b1
child 14718 cc6ab1e3f7d5
--- a/qmlfrontend/engine_instance.h	Fri Dec 07 13:56:45 2018 +0100
+++ b/qmlfrontend/engine_instance.h	Fri Dec 07 14:30:35 2018 +0100
@@ -1,6 +1,7 @@
 #ifndef ENGINEINSTANCE_H
 #define ENGINEINSTANCE_H
 
+#include <QImage>
 #include <QObject>
 #include <QOpenGLContext>
 
@@ -20,7 +21,7 @@
   void advance(quint32 ticks);
   void renderFrame();
   void setOpenGLContext(QOpenGLContext* context);
-  Engine::PreviewInfo generatePreview();
+  QImage generatePreview();
 
   bool isValid() const;
 
@@ -36,6 +37,7 @@
       hedgewars_engine_protocol_version;
   Engine::start_engine_t* start_engine;
   Engine::generate_preview_t* generate_preview;
+  Engine::dispose_preview_t* dispose_preview;
   Engine::cleanup_t* cleanup;
   Engine::send_ipc_t* send_ipc;
   Engine::read_ipc_t* read_ipc;