-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUI.qml
More file actions
81 lines (65 loc) · 1.73 KB
/
UI.qml
File metadata and controls
81 lines (65 loc) · 1.73 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import Qt3D.Core 2.0
import Qt3D.Render 2.0
import Qt3D.Extras 2.12
import QtQuick 2.6
import QtQuick.Scene2D 2.12
import QtQuick.Controls 2.5
Entity {
id: uiroot
property Layer layer: null
components: [planeMesh, planeTransorm, planeMaterial, planePicker, layer]
PlaneMesh {
id: planeMesh
width: 0.5
height: 0.5
mirrored: true
}
Transform {
id: planeTransorm
translation: Qt.vector3d(0.5, 0.0, 0.0)
rotation: fromAxisAndAngle(Qt.vector3d(1, 0, 0), 90)
}
ObjectPicker {
id: planePicker
hoverEnabled: true
dragEnabled: true
}
TextureMaterial {
id: planeMaterial
texture: offscreenTexture
}
Scene2D {
id: qmlTexture
output: RenderTargetOutput {
attachmentPoint: RenderTargetOutput.Color0
texture: Texture2D {
id: offscreenTexture
width: 640
height: 480
format: Texture.RGBA8_UNorm
generateMipMaps: true
magnificationFilter: Texture.Linear
minificationFilter: Texture.LinearMipMapLinear
wrapMode {
x: WrapMode.ClampToEdge
y: WrapMode.ClampToEdge
}
}
}
entities: [uiroot]
mouseEnabled: true
Item {
width: offscreenTexture.width
height: offscreenTexture.height
//color: "white"
enabled: true
Button {
text: "Test"
anchors.centerIn: parent
}
// ProgressBar {
// indeterminate: true
// }
}
}
}