qmlfrontend/engine_instance.h
author nemo
Wed, 05 Dec 2018 09:50:25 -0500
branch0.9.25
changeset 14373 c2a3d15df7d3
parent 14295 92e5682810d4
child 14377 b6824a53d4b1
permissions -rw-r--r--
Add log note just in case pas2c does anything odd.

#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