ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
81 lines
1.8 KiB
QML
81 lines
1.8 KiB
QML
// Copyright (C) 2019 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
//! [import]
|
|
import QtQuick
|
|
import QtQuick3D
|
|
//! [import]
|
|
|
|
Window {
|
|
id: window
|
|
width: 1280
|
|
height: 720
|
|
visible: true
|
|
|
|
View3D {
|
|
id: view
|
|
anchors.fill: parent
|
|
|
|
//! [environment]
|
|
environment: SceneEnvironment {
|
|
clearColor: "skyblue"
|
|
backgroundMode: SceneEnvironment.Color
|
|
}
|
|
//! [environment]
|
|
|
|
//! [camera]
|
|
PerspectiveCamera {
|
|
position: Qt.vector3d(0, 200, 300)
|
|
eulerRotation.x: -30
|
|
}
|
|
//! [camera]
|
|
|
|
//! [light]
|
|
DirectionalLight {
|
|
eulerRotation.x: -30
|
|
eulerRotation.y: -70
|
|
}
|
|
//! [light]
|
|
|
|
//! [objects]
|
|
Model {
|
|
position: Qt.vector3d(0, -200, 0)
|
|
source: "#Cylinder"
|
|
scale: Qt.vector3d(2, 0.2, 1)
|
|
materials: [ PrincipledMaterial {
|
|
baseColor: "red"
|
|
}
|
|
]
|
|
}
|
|
|
|
Model {
|
|
position: Qt.vector3d(0, 150, 0)
|
|
source: "#Sphere"
|
|
|
|
materials: [ PrincipledMaterial {
|
|
baseColor: "blue"
|
|
}
|
|
]
|
|
|
|
//! [animation]
|
|
SequentialAnimation on y {
|
|
loops: Animation.Infinite
|
|
NumberAnimation {
|
|
duration: 3000
|
|
to: -150
|
|
from: 150
|
|
easing.type:Easing.InQuad
|
|
}
|
|
NumberAnimation {
|
|
duration: 3000
|
|
to: 150
|
|
from: -150
|
|
easing.type:Easing.OutQuad
|
|
}
|
|
}
|
|
//! [animation]
|
|
}
|
|
//! [objects]
|
|
}
|
|
}
|