add super node & view node
This commit is contained in:
7
doric/plugin/shader_plugin.cpp
Normal file
7
doric/plugin/shader_plugin.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "shader_plugin.h"
|
||||
#include "shader/view_node.h"
|
||||
|
||||
Q_INVOKABLE void ShaderPlugin::render(QJSValue jsValue) {
|
||||
QString viewId = jsValue.property("id").toString();
|
||||
ViewNode<QObject> *viewNode = new ViewNode<QObject>(nullptr);
|
||||
}
|
@@ -2,6 +2,7 @@
|
||||
#define SHADER_PLUGIN_H
|
||||
|
||||
#include <QDebug>
|
||||
#include <QJSValue>
|
||||
|
||||
#include "context_holder.h"
|
||||
|
||||
@@ -11,9 +12,7 @@ class ShaderPlugin : public ContextHolder {
|
||||
public:
|
||||
ShaderPlugin(Context *context) : ContextHolder(context) {}
|
||||
|
||||
Q_INVOKABLE void render() {
|
||||
qDebug() << "render";
|
||||
}
|
||||
Q_INVOKABLE void render(QJSValue jsValue);
|
||||
};
|
||||
|
||||
#endif // SHADER_PLUGIN_H
|
||||
|
Reference in New Issue
Block a user