summaryrefslogtreecommitdiffstats
path: root/GLIntegrationSlide.qml
blob: 6a10d373a36abaf52e44d7399279fb1291fbe125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import QtQuick 2.0
import Qt.labs.presentation 1.0

Slide { // GL Over / GL Under
    title: "Integration with OpenGL"
    content: [
        "Hook in custom OpenGL rendering code",
        "Under QML",
        "Over QML",
        "Inside QML using an FBO"
            ]
    contentWidth: integrationImage.x

    Image {
        id: integrationImage
        anchors.right: parent.right
        height: parent.height / 2
        smooth: true
        fillMode: Image.PreserveAspectFit
        source: "images/ogre.png"
    }

    Text {
        font.pixelSize: parent.baseFontSize * 0.4
        color: "white"
        text: "Ogre3D inside the QML Scene Graph"
        anchors.top: integrationImage.bottom
        anchors.horizontalCenter: integrationImage.horizontalCenter
    }
}