split project with app & doric module
This commit is contained in:
20
doric-Qt/example/doric/utils/DoricImageBridge.cpp
Normal file
20
doric-Qt/example/doric/utils/DoricImageBridge.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "DoricImageBridge.h"
|
||||
#include "shader/DoricImageNode.h"
|
||||
|
||||
DoricImageBridge::DoricImageBridge(QObject *parent) : QObject(parent) {}
|
||||
|
||||
void DoricImageBridge::onNull(QString pointer) {}
|
||||
|
||||
void DoricImageBridge::onReady(QString pointer) {
|
||||
QObject *object = (QObject *)(pointer.toULongLong());
|
||||
DoricImageNode *imageNode = dynamic_cast<DoricImageNode *>(object);
|
||||
imageNode->onReady();
|
||||
}
|
||||
|
||||
void DoricImageBridge::onLoading(QString pointer) {}
|
||||
|
||||
void DoricImageBridge::onError(QString pointer) {
|
||||
QObject *object = (QObject *)(pointer.toULongLong());
|
||||
DoricImageNode *imageNode = dynamic_cast<DoricImageNode *>(object);
|
||||
imageNode->onError();
|
||||
}
|
||||
Reference in New Issue
Block a user