add bridge call native

This commit is contained in:
王劲鹏
2019-12-14 18:28:04 +08:00
parent fe1a556ad8
commit b785685802
5 changed files with 29 additions and 8 deletions

View File

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