part of sources here https://github.com/savegame/sailfish-ir ... _rendering
work its not done, now i have problem with Qt shader pipeline? when irrlicht render just One shader, its segfautl, becuse ut try render SOLID object with previosly lodaded by Qt shader for their QML object.. but when in scene more then one type of materials. its works normally with QML objects =)
Its works with QOpenGLFucntions (GLES2 Render), rendering Driver based on COGLES2Driver (its just copy-pasted with changes for Qt rendering). No context manger are created and used, Context/manager - its Qt. I test it on two desktop platforms, and it should work on any mobile platforms? where Qt work.
For use it in App, just need Create standart QtQuick template program (empty)? in main.cpp include irrlicht_folder/source/qt/IrrQuick.h and register QML type
Code: Select all
qmlRegisterType<IrrQuickItem>("ru.sashikknox",1,0,"IrrQuickItem");
Code: Select all
import QtQuick 2.6
import QtQuick.Window 2.2
import ru.sashikknox 1.0
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
IrrQuickItem {
id: irrItem
anchors.fill: parent
SequentialAnimation on t {
NumberAnimation { to: 1; duration: 2500; easing.type: Easing.InQuad }
NumberAnimation { to: 0; duration: 2500; easing.type: Easing.OutQuad }
loops: Animation.Infinite
running: true
}
}
Rectangle {
anchors {
bottom: parent.bottom
left: parent.left
right: parent.right
margins: 5
}
height: parent.height * 0.25
color: Qt.rgba(1,1,1,0.4)
border.color: "black"
border.width: 2
radius: 10
Text {
text: "The Irrlciht render inside QML!!! That work on QOpenGLFunctions " +
"from Irricht-Qt driver (CQGLFunctionsDriver) and rendering with it. "
anchors.fill: parent
anchors.margins: 5
font.pixelSize: 25
wrapMode: Text.Wrap
}
}
}