qmlfrontend/engine_instance.cpp
author nemo
Wed, 21 Nov 2018 15:41:43 -0500
changeset 14287 9b5a8147386f
parent 14175 8354b390f1a2
child 14292 1aac8a62be6f
permissions -rw-r--r--
I think this is correct way to use iterate over it as a hashmap. don't have much lua practice

#include "engine_instance.h"

EngineInstance::EngineInstance(QObject *parent)
    : QObject(parent), m_instance(Engine::start_engine()) {}

EngineInstance::~EngineInstance() { Engine::cleanup(m_instance); }

Engine::PreviewInfo EngineInstance::generatePreview() {
  Engine::PreviewInfo pinfo;

  Engine::generate_preview(m_instance, &pinfo);

  return pinfo;
}