rename dir
This commit is contained in:
6
doric-Qt/doric/plugin/shader_plugin.cpp
Normal file
6
doric-Qt/doric/plugin/shader_plugin.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "shader_plugin.h"
|
||||
|
||||
Q_INVOKABLE void ShaderPlugin::render(QJSValue jsValue) {
|
||||
QString viewId = jsValue.property("id").toString();
|
||||
qDebug() << viewId;
|
||||
}
|
18
doric-Qt/doric/plugin/shader_plugin.h
Normal file
18
doric-Qt/doric/plugin/shader_plugin.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#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
|
Reference in New Issue
Block a user