File: customTexturesUnused.qml

package info (click to toggle)
qt6-quick3d 6.9.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 142,620 kB
  • sloc: cpp: 388,193; ansic: 37,842; xml: 288; sh: 241; makefile: 32
file content (43 lines) | stat: -rw-r--r-- 705 bytes parent folder | download | duplicates (4)
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
import QtQuick
import QtQuick3D
import io.qt.tests.auto.BufferManager

View3D {
    width: 640
    height: 480
    id: view1
    anchors.fill: parent

    PerspectiveCamera {
        id: camera1
    }

    Texture {
        id: tex1
        textureData: GradientTexture {
            id: textData1
            width: 256
            height: 256
            startColor: "red"
            endColor: "blue"
        }
    }

    Texture {
        id: tex2
        textureData: textData1
    }

    GradientTexture {
        id: textData2
        width: 128
        height: 128
        startColor: "green"
        endColor: "yellow"
    }

    Texture {
        id: tex3
        textureData: textData2
    }
}