Display a textured cube with Raylib (#2)

This commit was merged in pull request #2.
This commit is contained in:
kornerr committed 2026-10-18 12:16:39 +02:00
1 parent 184454cf59
commit 1515a9483b
13 files changed
+982 -12

No files matched your search

+13 -8
View File
@@ -8,17 +8,22 @@ struct RootView: View {
}
var body: some View {
VStack(spacing: 16) {
Text("Hello, World!")
.font(.largeTitle)
ZStack {
RaylibGLView()
.ignoresSafeArea()
Text(vm.countText)
.font(.title3.monospacedDigit())
VStack(spacing: 16) {
Text("Hello, World!")
.font(.largeTitle)
Button("Increment") {
rootSet(F.didClickIncrement, true)
Text(vm.countText)
.font(.title3.monospacedDigit())
Button("Increment") {
rootSet(F.didClickIncrement, true)
}
}
.padding(40)
}
.padding(40)
}
}