mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
20 lines
502 B
C++
20 lines
502 B
C++
#include "screenplayshader_plugin.h"
|
|
|
|
#include <qqml.h>
|
|
#include <QQmlEngine>
|
|
|
|
QObject* ScreenPlayShaderLibrarySingleton(QQmlEngine* engine, QJSEngine* scriptEngine)
|
|
{
|
|
Q_UNUSED(scriptEngine)
|
|
//Add QRC
|
|
// engine->addImportPath("qrc:/ShaderWrapper/");
|
|
// engine->addImportPath("..");
|
|
return new ShaderLibrary();
|
|
}
|
|
|
|
void ScreenPlayShaderPlugin::registerTypes(const char* uri)
|
|
{
|
|
|
|
qmlRegisterSingletonType<ShaderLibrary>(uri, 1, 0, "ShaderLibrary", ScreenPlayShaderLibrarySingleton);
|
|
}
|