diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-05-18 09:01:02 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-05-18 09:01:02 +0200 |
commit | 07c56ca4fb8240bea18cf8e941e3c61b48d7e7ed (patch) | |
tree | ea346024bf42a7cf6a603693877bf34031ecfbbb /GLIntegrationSlide.qml |
SceneGraph demo
Diffstat (limited to 'GLIntegrationSlide.qml')
-rw-r--r-- | GLIntegrationSlide.qml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/GLIntegrationSlide.qml b/GLIntegrationSlide.qml new file mode 100644 index 0000000..6a10d37 --- /dev/null +++ b/GLIntegrationSlide.qml @@ -0,0 +1,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 + } +} + |