1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00
ScreenPlay/ScreenPlayShader/screenplayshader_plugin.cpp

19 lines
542 B
C++
Raw Normal View History

2020-09-10 11:40:07 +02:00
#include "screenplayshader_plugin.h"
2020-09-13 19:51:20 +02:00
#include <QQmlEngine>
2020-09-24 19:08:06 +02:00
#include <QUrl>
#include <qqml.h>
2020-09-10 11:40:07 +02:00
QObject* ScreenPlayShaderLibrarySingleton(QQmlEngine* engine, QJSEngine* scriptEngine)
{
Q_UNUSED(scriptEngine)
return new ShaderLibrary();
}
void ScreenPlayShaderPlugin::registerTypes(const char* uri)
{
2020-10-29 19:17:37 +01:00
qmlRegisterType(QUrl("qrc:/ShaderWrapper/ShadertoyShader.qml"), "ScreenPlay.ShadertoyShader", 1, 0, "ShadertoyShader");
2020-09-10 11:40:07 +02:00
qmlRegisterSingletonType<ShaderLibrary>(uri, 1, 0, "ShaderLibrary", ScreenPlayShaderLibrarySingleton);
}