Create hello-platform for Linux (#13)

Co-authored-by: Михаил Капелько <kornerr@gmail.com>
This commit is contained in:
kornerr authored and Михаил Капелько committed 2026-11-02 21:40:55 +01:00
1 parent 45ca185094
commit 614392c921
23 files changed
+4720 -7

No files matched your search

@@ -0,0 +1,17 @@
import GtkBackend
import SwiftCrossUI
@main
struct HPApp: App {
var backend: GtkBackend {
GtkBackend(appIdentifier: "org.opengamestudio.hello-platform")
}
let delegate = HPAppDelegate()
var body: some Scene {
WindowGroup("Hello platform") {
HPView(delegate.hpVM)
}
}
}
@@ -0,0 +1,11 @@
import SwiftCrossUI
final class HPAppDelegate {
let hp = HPComponent()
let hpVM = HPVM()
init() {
otherSetupConsoleLogging(hp.ctrl, "HP")
hp.setup()
}
}
+1
View File
@@ -0,0 +1 @@
../../ver-mac/src/dialect.swift
+1
View File
@@ -0,0 +1 @@
../../../../../components/hp/linux/hp.swift
+1
View File
@@ -0,0 +1 @@
../../../../../components/hp/linux/hpVM.swift
@@ -0,0 +1 @@
../../../../../../components/hp/linux/view/HPView.swift
+1
View File
@@ -0,0 +1 @@
../../../../../components/other/other.swift