This commit is contained in:
王劲鹏
2021-01-28 17:06:40 +08:00
committed by osborn
parent 0be7a9679a
commit 93b7cc2457
53 changed files with 1020 additions and 774 deletions

View File

@@ -1,6 +0,0 @@
#include "shader_plugin.h"
Q_INVOKABLE void ShaderPlugin::render(QJSValue jsValue) {
QString viewId = jsValue.property("id").toString();
qDebug() << viewId;
}

View File

@@ -1,18 +0,0 @@
#ifndef SHADER_PLUGIN_H
#define SHADER_PLUGIN_H
#include <QDebug>
#include <QJSValue>
#include "context_holder.h"
class ShaderPlugin : public ContextHolder {
Q_OBJECT
public:
ShaderPlugin(Context *context) : ContextHolder(context) {}
Q_INVOKABLE void render(QJSValue jsValue);
};
#endif // SHADER_PLUGIN_H