code format & class prefix
This commit is contained in:
9
doric-Qt/doric/plugin/DoricShaderPlugin.cpp
Normal file
9
doric-Qt/doric/plugin/DoricShaderPlugin.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "DoricShaderPlugin.h"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
DoricShaderPlugin::DoricShaderPlugin(QObject *parent) : QObject(parent) {}
|
||||
|
||||
void DoricShaderPlugin::render(QJSValue jsValue, QString callbackId) {
|
||||
qDebug() << "";
|
||||
}
|
15
doric-Qt/doric/plugin/DoricShaderPlugin.h
Normal file
15
doric-Qt/doric/plugin/DoricShaderPlugin.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef SHADERPLUGIN_H
|
||||
#define SHADERPLUGIN_H
|
||||
|
||||
#include <QJSValue>
|
||||
#include <QObject>
|
||||
|
||||
class DoricShaderPlugin : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
DoricShaderPlugin(QObject *parent);
|
||||
|
||||
Q_INVOKABLE void render(QJSValue jsValue, QString callbackId);
|
||||
};
|
||||
|
||||
#endif // SHADERPLUGIN_H
|
@@ -1,13 +0,0 @@
|
||||
#include "shader_plugin.h"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
ShaderPlugin::ShaderPlugin(QObject* parent) : QObject (parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ShaderPlugin::render(QJSValue jsValue, QString callbackId)
|
||||
{
|
||||
qDebug() << "";
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
#ifndef SHADERPLUGIN_H
|
||||
#define SHADERPLUGIN_H
|
||||
|
||||
#include <QJSValue>
|
||||
#include <QObject>
|
||||
|
||||
class ShaderPlugin : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ShaderPlugin(QObject* parent);
|
||||
|
||||
Q_INVOKABLE void render(QJSValue jsValue, QString callbackId);
|
||||
};
|
||||
|
||||
#endif // SHADERPLUGIN_H
|
Reference in New Issue
Block a user