Create hello-platform for macOS (#10)

Co-authored-by: Михаил Капелько <kornerr@gmail.com>
This commit is contained in:
kornerr authored and Михаил Капелько committed 2026-11-01 05:01:36 +01:00
1 parent 8913022044
commit 1aa218d0bb
186 files changed
+519 -7

No files matched your search

@@ -0,0 +1,23 @@
import UIKit
final class AppDelegate:
NSObject,
UIApplicationDelegate
{
let blue = BlueComponent()
let blueVM = BlueVM()
let render = RenderComponent()
let renderVM = RenderVM()
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
otherSetupConsoleLogging(blue.ctrl, "Blue")
blue.setup()
otherSetupConsoleLogging(render.ctrl, "Render")
render.setup()
return true
}
}
+15
View File
@@ -0,0 +1,15 @@
#define EGL_CONST_IMPLEMENTATION
#include "eglConst.h"
#define EGL_IMPLEMENTATION
#include "egl.h"
#define RAYBRI_CONST_IMPLEMENTATION
#include "raybriConst.h"
#define RAYBRI_IMPLEMENTATION
#include "raybri.h"
#define RLGL_IMPLEMENTATION
#include "rlgl.h"
@@ -0,0 +1,16 @@
import SwiftUI
@main
struct BlueApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
var body: some Scene {
WindowGroup {
ZStack {
RenderView()
.ignoresSafeArea()
BlueView(appDelegate.blueVM)
}
}
}
}
@@ -0,0 +1,7 @@
#ifndef OGS_BLUE_BRIDGING_HEADER_H
#define OGS_BLUE_BRIDGING_HEADER_H
#include "egl/egl.h"
#include "raybri/raybri.h"
#endif // OGS_BLUE_BRIDGING_HEADER_H
+1
View File
@@ -0,0 +1 @@
../../../../components/blue/blue.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/blue/blueVM.swift
@@ -0,0 +1 @@
../../../../../components/blue/ios/view/BlueView.swift
+1
View File
@@ -0,0 +1 @@
../../ver-mac/src/dialect.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/egl/egl.h
+1
View File
@@ -0,0 +1 @@
../../../../components/egl/eglConst.h
+1
View File
@@ -0,0 +1 @@
../../../../components/other/other.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/raybri/raybri.h
+1
View File
@@ -0,0 +1 @@
../../../../components/raybri/raybriConst.h
+1
View File
@@ -0,0 +1 @@
../../../../components/render/render.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/render/ios/renderAux.swift
@@ -0,0 +1 @@
../../../../components/render/renderConst.swift
@@ -0,0 +1 @@
../../../../components/render/ios/renderEffect.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/render/renderVM.swift
@@ -0,0 +1 @@
../../../../../components/render/ios/view/RenderGLView.swift
@@ -0,0 +1 @@
../../../../../components/render/ios/view/RenderView.swift