qmlfrontend/engine_instance.h
author Wuzzy <Wuzzy2@mail.ru>
Sat, 01 Dec 2018 23:31:35 +0100
changeset 14378 3baee596a989
parent 14311 92e5682810d4
child 14393 b6824a53d4b1
permissions -rw-r--r--
Apply Pas2C fix suggested by unC0Rr

#ifndef ENGINEINSTANCE_H
#define ENGINEINSTANCE_H

#include "engine_interface.h"

#include <QObject>
#include <QOpenGLContext>

#include "game_config.h"

class EngineInstance : public QObject {
  Q_OBJECT
 public:
  explicit EngineInstance(QObject* parent = nullptr);
  ~EngineInstance();

  void sendConfig(const GameConfig& config);
  void advance(quint32 ticks);
  void renderFrame();
  void setOpenGLContext(QOpenGLContext* context);
  Engine::PreviewInfo generatePreview();

 signals:

 public slots:

 private:
  Engine::EngineInstance* m_instance;
};

#endif  // ENGINEINSTANCE_H