diff --git a/components/blue/blue.swift b/components/blue/blue.swift
new file mode 100644
index 0000000..1b68227
--- /dev/null
+++ b/components/blue/blue.swift
@@ -0,0 +1,14 @@
+class BlueComponent {
+ let ctrl = DialectController(BlueContext())
+ static private(set) weak var singleton: BlueComponent?
+
+ init() {
+ Self.singleton = self
+ //blueRegisterEffects(ctrl)
+ blueRegisterShoulds(ctrl)
+ }
+
+ func setup() {
+ blueSet(F.didSetup, true)
+ }
+}
diff --git a/components/blue/blueVM.swift b/components/blue/blueVM.swift
new file mode 100644
index 0000000..a145dbf
--- /dev/null
+++ b/components/blue/blueVM.swift
@@ -0,0 +1,9 @@
+import Combine
+
+final class BlueVM: ObservableObject {
+ static private(set) weak var shared: BlueVM?
+
+ init() {
+ Self.shared = self
+ }
+}
diff --git a/components/blue/ios/view/BlueView.swift b/components/blue/ios/view/BlueView.swift
new file mode 120000
index 0000000..47a140d
--- /dev/null
+++ b/components/blue/ios/view/BlueView.swift
@@ -0,0 +1 @@
+../../mac/view/BlueView.swift
\ No newline at end of file
diff --git a/components/blue/mac/view/BlueView.swift b/components/blue/mac/view/BlueView.swift
new file mode 100644
index 0000000..f3bdf7e
--- /dev/null
+++ b/components/blue/mac/view/BlueView.swift
@@ -0,0 +1,24 @@
+import SwiftUI
+
+struct BlueView: View {
+ @ObservedObject var vm: BlueVM
+
+ init(_ vm: BlueVM) {
+ self.vm = vm
+ }
+
+ var body: some View {
+ VStack(spacing: 16) {
+ ZStack {
+ Text("Check graphics")
+ .font(.largeTitle)
+ .foregroundStyle(.white)
+ .offset(x: 1, y: 1)
+ Text("Check graphics")
+ .font(.largeTitle)
+ .foregroundStyle(.black)
+ }
+ }
+ .padding(40)
+ }
+}
diff --git a/ogs-blue/dialect.yml b/ogs-blue/dialect.yml
new file mode 100644
index 0000000..3ceb138
--- /dev/null
+++ b/ogs-blue/dialect.yml
@@ -0,0 +1,67 @@
+version: 4
+
+output:
+ ver-mac/src/dialect.swift:
+ type: swift
+
+BlueComponent:
+ type: component
+ shoulds:
+ didLaunch:
+ 1. Only once during the first setup:
+ if:
+ c.recentField == F.didSetup &&
+ c.didLaunch == false
+ then:
+ c.didLaunch = true
+
+BlueContext:
+ type: context
+ fields:
+ didLaunch: Bool
+ didSetup: Bool
+
+RenderContext:
+ type: context
+ fields:
+ backingPixelSize: [Int32]
+ didLaunch: Bool
+ didPrepareGL: Bool
+ didSetup: Bool
+ pixelSize: [Int32]
+ reshapePixelSize: [Int32]
+ willDeinit: Bool
+
+RenderComponent:
+ type: component
+ oneliners:
+ - didPrepareGL: renderInit(RenderVM.shared!)
+ - didPrepareGL: RenderVM.shared!.didPrepareGL = true
+ - didPrepareGL: renderStartTimer(RenderVM.shared!)
+ - didPrepareGL: renderLoadCubeModel(RenderVM.shared!)
+ - pixelSize: RenderVM.shared!.pixelSize = c.pixelSize
+ - willDeinit: renderDeinit(RenderVM.shared!)
+ shoulds:
+ didLaunch:
+ 1. Only once during the first setup:
+ if:
+ c.recentField == F.didSetup &&
+ c.didLaunch == false
+ then:
+ c.didLaunch = true
+ pixelSize:
+ 1. Upon launch:
+ if:
+ c.recentField == F.didLaunch
+ then:
+ c.pixelSize = [1, 1]
+ 2. Upon resize:
+ if:
+ c.recentField == F.reshapePixelSize
+ then:
+ c.pixelSize = c.reshapePixelSize
+ 3. Upon DPI change:
+ if:
+ c.recentField == F.backingPixelSize
+ then:
+ c.pixelSize = c.backingPixelSize
diff --git a/ogs-blue/ver-ios/Assets.xcassets/AppIcon.appiconset/AppIcon.png b/ogs-blue/ver-ios/Assets.xcassets/AppIcon.appiconset/AppIcon.png
new file mode 100644
index 0000000..f2520ea
Binary files /dev/null and b/ogs-blue/ver-ios/Assets.xcassets/AppIcon.appiconset/AppIcon.png differ
diff --git a/ogs-blue/ver-ios/Assets.xcassets/AppIcon.appiconset/Contents.json b/ogs-blue/ver-ios/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..ca34fdb
--- /dev/null
+++ b/ogs-blue/ver-ios/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,14 @@
+{
+ "images" : [
+ {
+ "filename" : "AppIcon.png",
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
\ No newline at end of file
diff --git a/ogs-blue/ver-ios/Info.plist b/ogs-blue/ver-ios/Info.plist
new file mode 100644
index 0000000..7f91849
--- /dev/null
+++ b/ogs-blue/ver-ios/Info.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleName
+ OGS blue
+ CFBundleDisplayName
+ OGS blue
+ CFBundleIdentifier
+ org.opengamestudio.blue
+ CFBundleExecutable
+ ogs-blue
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+ UILaunchScreen
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+
+
+
diff --git a/ogs-blue/ver-ios/project.yml b/ogs-blue/ver-ios/project.yml
new file mode 100644
index 0000000..8740a5f
--- /dev/null
+++ b/ogs-blue/ver-ios/project.yml
@@ -0,0 +1,14 @@
+name: OGS blue
+options:
+ bundleIdPrefix: org.opengamestudio
+targets:
+ ogs-blue:
+ type: application
+ platform: iOS
+ deploymentTarget: "15.0"
+ sources:
+ - path: Assets.xcassets
+ - path: src
+ settings:
+ base:
+ INFOPLIST_FILE: Info.plist
diff --git a/ogs-blue/ver-ios/src/AppDelegate.swift b/ogs-blue/ver-ios/src/AppDelegate.swift
new file mode 100644
index 0000000..28fa61b
--- /dev/null
+++ b/ogs-blue/ver-ios/src/AppDelegate.swift
@@ -0,0 +1,19 @@
+import UIKit
+
+final class AppDelegate:
+ NSObject,
+ UIApplicationDelegate
+{
+ let blue = BlueComponent()
+ let blueVM = BlueVM()
+
+ func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
+ ) -> Bool {
+ otherSetupConsoleLogging(blue.ctrl, "Blue")
+ blue.setup()
+
+ return true
+ }
+}
diff --git a/ogs-blue/ver-ios/src/BlueApp.swift b/ogs-blue/ver-ios/src/BlueApp.swift
new file mode 100644
index 0000000..85682a4
--- /dev/null
+++ b/ogs-blue/ver-ios/src/BlueApp.swift
@@ -0,0 +1,12 @@
+import SwiftUI
+
+@main
+struct BlueApp: App {
+ @UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
+
+ var body: some Scene {
+ WindowGroup {
+ BlueView(appDelegate.blueVM)
+ }
+ }
+}
diff --git a/ogs-blue/ver-ios/src/blue/blue.swift b/ogs-blue/ver-ios/src/blue/blue.swift
new file mode 120000
index 0000000..e4a3541
--- /dev/null
+++ b/ogs-blue/ver-ios/src/blue/blue.swift
@@ -0,0 +1 @@
+../../../../components/blue/blue.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-ios/src/blue/blueVM.swift b/ogs-blue/ver-ios/src/blue/blueVM.swift
new file mode 120000
index 0000000..60b84cd
--- /dev/null
+++ b/ogs-blue/ver-ios/src/blue/blueVM.swift
@@ -0,0 +1 @@
+../../../../components/blue/blueVM.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-ios/src/blue/view/BlueView.swift b/ogs-blue/ver-ios/src/blue/view/BlueView.swift
new file mode 120000
index 0000000..2ab807f
--- /dev/null
+++ b/ogs-blue/ver-ios/src/blue/view/BlueView.swift
@@ -0,0 +1 @@
+../../../../../components/blue/ios/view/BlueView.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-ios/src/dialect.swift b/ogs-blue/ver-ios/src/dialect.swift
new file mode 120000
index 0000000..a931c95
--- /dev/null
+++ b/ogs-blue/ver-ios/src/dialect.swift
@@ -0,0 +1 @@
+../../ver-mac/src/dialect.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-ios/src/other/other.swift b/ogs-blue/ver-ios/src/other/other.swift
new file mode 120000
index 0000000..f91488c
--- /dev/null
+++ b/ogs-blue/ver-ios/src/other/other.swift
@@ -0,0 +1 @@
+../../../../components/other/other.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/Info.plist b/ogs-blue/ver-mac/Info.plist
new file mode 100644
index 0000000..ef6abed
--- /dev/null
+++ b/ogs-blue/ver-mac/Info.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleName
+ OGS blue
+ CFBundleDisplayName
+ OGS blue
+ CFBundleIdentifier
+ org.opengamestudio.blue
+ CFBundleExecutable
+ ogs-blue
+ CFBundleIconFile
+ AppIcon
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 2.0.0
+ CFBundleVersion
+ 1
+ LSMinimumSystemVersion
+ 11.0
+ NSHighResolutionCapable
+
+
+
diff --git a/ogs-blue/ver-mac/Package.swift b/ogs-blue/ver-mac/Package.swift
new file mode 100644
index 0000000..8ea77e5
--- /dev/null
+++ b/ogs-blue/ver-mac/Package.swift
@@ -0,0 +1,37 @@
+// swift-tools-version: 5.9
+import Foundation
+import PackageDescription
+
+let raylibPrefix = ProcessInfo.processInfo.environment["RAYLIB_PREFIX"] ?? "/opt/homebrew"
+
+let package = Package(
+ name: "OGSBlue",
+ platforms: [
+ .macOS(.v13)
+ ],
+ targets: [
+ .target(
+ name: "RaylibBridge",
+ path: "src/raybri",
+ publicHeadersPath: ".",
+ cSettings: [
+ .unsafeFlags(["-I", "\(raylibPrefix)/include"])
+ ]
+ ),
+ .executableTarget(
+ name: "ogs-blue",
+ dependencies: ["RaylibBridge"],
+ path: "src",
+ exclude: ["raybri"],
+ swiftSettings: [
+ .unsafeFlags(["-Xcc", "-DGL_SILENCE_DEPRECATION"])
+ ],
+ linkerSettings: [
+ .unsafeFlags([
+ "-L", "\(raylibPrefix)/lib",
+ "-lraylib"
+ ])
+ ]
+ )
+ ]
+)
diff --git a/ogs-blue/ver-mac/res/AppIcon.icns b/ogs-blue/ver-mac/res/AppIcon.icns
new file mode 120000
index 0000000..7e98160
--- /dev/null
+++ b/ogs-blue/ver-mac/res/AppIcon.icns
@@ -0,0 +1 @@
+../../../res/AppIcon.icns
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/res/cube b/ogs-blue/ver-mac/res/cube
new file mode 120000
index 0000000..24cd8a9
--- /dev/null
+++ b/ogs-blue/ver-mac/res/cube
@@ -0,0 +1 @@
+../../../res/cube
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/AppDelegate.swift b/ogs-blue/ver-mac/src/AppDelegate.swift
new file mode 100644
index 0000000..4138293
--- /dev/null
+++ b/ogs-blue/ver-mac/src/AppDelegate.swift
@@ -0,0 +1,26 @@
+import AppKit
+
+final class AppDelegate:
+ NSObject,
+ NSApplicationDelegate
+{
+ let blue = BlueComponent()
+ let blueVM = BlueVM()
+ let render = RenderComponent()
+ let renderVM = RenderVM()
+
+ func applicationDidFinishLaunching(_ notification: Notification) {
+ // Bring the app to the foreground
+ NSApp.setActivationPolicy(.regular)
+ NSApp.activate(ignoringOtherApps: true)
+
+ otherSetupConsoleLogging(blue.ctrl, "Blue")
+ blue.setup()
+ otherSetupConsoleLogging(render.ctrl, "Render")
+ render.setup()
+ }
+
+ func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
+ true
+ }
+}
diff --git a/ogs-blue/ver-mac/src/BlueApp.swift b/ogs-blue/ver-mac/src/BlueApp.swift
new file mode 100644
index 0000000..67a6d88
--- /dev/null
+++ b/ogs-blue/ver-mac/src/BlueApp.swift
@@ -0,0 +1,17 @@
+import SwiftUI
+
+@main
+struct BlueApp: App {
+ @NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
+
+ var body: some Scene {
+ WindowGroup {
+ ZStack {
+ RenderView()
+ .ignoresSafeArea()
+ BlueView(appDelegate.blueVM)
+ }
+ }
+ .defaultSize(width: 640, height: 480)
+ }
+}
diff --git a/ogs-blue/ver-mac/src/blue/blue.swift b/ogs-blue/ver-mac/src/blue/blue.swift
new file mode 120000
index 0000000..e4a3541
--- /dev/null
+++ b/ogs-blue/ver-mac/src/blue/blue.swift
@@ -0,0 +1 @@
+../../../../components/blue/blue.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/blue/blueVM.swift b/ogs-blue/ver-mac/src/blue/blueVM.swift
new file mode 120000
index 0000000..60b84cd
--- /dev/null
+++ b/ogs-blue/ver-mac/src/blue/blueVM.swift
@@ -0,0 +1 @@
+../../../../components/blue/blueVM.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/blue/view/BlueView.swift b/ogs-blue/ver-mac/src/blue/view/BlueView.swift
new file mode 120000
index 0000000..de3df9a
--- /dev/null
+++ b/ogs-blue/ver-mac/src/blue/view/BlueView.swift
@@ -0,0 +1 @@
+../../../../../components/blue/mac/view/BlueView.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/dialect.swift b/ogs-blue/ver-mac/src/dialect.swift
new file mode 100644
index 0000000..64a6676
--- /dev/null
+++ b/ogs-blue/ver-mac/src/dialect.swift
@@ -0,0 +1,342 @@
+
+// Reusable "none" constant
+public let DIALECT_CONTEXT_RECENT_FIELD_NONE = "none"
+
+// Base protocol for each component's state
+public protocol DialectContext {
+ var recentField: String { get set }
+
+ func field(_ name: String) -> T
+ func fieldAny(_ name: String) -> Any
+ mutating func setField(_ name: String, _ value: Any)
+}
+
+// Default implementation of `fieldAny` method for the protocol
+public extension DialectContext {
+ func fieldAny(_ name: String) -> Any {
+ return field(name)
+ }
+}
+
+// The engine of the dialect components
+public class DialectController {
+ var callbacks = [(DialectContext) -> Void]()
+ var context: DialectContext
+ var functions = [(DialectContext) -> DialectContext]()
+ var isProcessingQueue = false
+ var queue = [DialectContext]()
+
+ public init(_ context: DialectContext) {
+ self.context = context
+ }
+
+ func executeFunctions() {
+ let c = queue.removeFirst()
+ // Keep SSOT: Only allow single field change per should-function
+ context.recentField = c.recentField
+ context.setField(c.recentField, c.fieldAny(c.recentField))
+
+ for f in functions {
+ let ctx = f(context)
+ if ctx.recentField != DIALECT_CONTEXT_RECENT_FIELD_NONE {
+ queue.append(ctx)
+ }
+ }
+
+ reportContext()
+ }
+
+ func processQueue() {
+ // Prevent recursion.
+ if isProcessingQueue {
+ return
+ }
+
+ isProcessingQueue = true
+
+ while (queue.count > 0) {
+ executeFunctions()
+ }
+
+ isProcessingQueue = false
+ }
+
+ public func registerCallback(_ cb: @escaping (DialectContext) -> Void) {
+ callbacks.append(cb)
+ }
+
+ public func registerFieldCallback(
+ _ fieldName: String,
+ _ cb: @escaping (DialectContext) -> Void
+ ) {
+ callbacks.append({ c in
+ if c.recentField == fieldName {
+ cb(c)
+ }
+ })
+ }
+
+ public func registerFunction(_ f: @escaping (DialectContext) -> DialectContext) {
+ functions.append(f)
+ }
+
+ func reportContext() {
+ for cb in callbacks {
+ cb(context)
+ }
+ }
+
+ public func set(
+ _ fieldName: String,
+ _ value: Any
+ ) {
+ var c = context
+ c.setField(fieldName, value)
+ c.recentField = fieldName
+ queue.append(c)
+ processQueue()
+ }
+}
+
+// Register several oneliner callbacks to a controller
+func registerOneliners(
+ _ ctrl: DialectController,
+ _ items: [Any]
+) -> T? {
+ let halfCount = items.count / 2
+ for i in 0.. Void
+ ctrl.registerFieldCallback(field) { cc in
+ let c = cc as! T
+ callback(c)
+ }
+ }
+
+ // A hack for generics to operate
+ return nil
+}
+
+// Context field names for static type check
+public struct F {
+ public static let backingPixelSize = "backingPixelSize"
+ public static let didLaunch = "didLaunch"
+ public static let didPrepareGL = "didPrepareGL"
+ public static let didSetup = "didSetup"
+ public static let pixelSize = "pixelSize"
+ public static let reshapePixelSize = "reshapePixelSize"
+ public static let willDeinit = "willDeinit"
+
+}
+public struct BlueContext: DialectContext {
+ public var didLaunch = Bool()
+ public var didSetup = Bool()
+
+ public var recentField = ""
+
+ public func field(_ name: String) -> T {
+ if (name == "didLaunch") {
+ return didLaunch as! T
+ }
+ else if (name == "didSetup") {
+ return didSetup as! T
+ }
+
+ return "unknown-field-name" as! T
+ }
+
+ public mutating func setField(
+ _ name: String,
+ _ value: Any
+ ) {
+ if (name == "didLaunch") {
+ didLaunch = value as! Bool
+ }
+ else if (name == "didSetup") {
+ didSetup = value as! Bool
+ }
+
+ }
+}
+
+public struct RenderContext: DialectContext {
+ public var backingPixelSize = [Int32]()
+ public var didLaunch = Bool()
+ public var didPrepareGL = Bool()
+ public var didSetup = Bool()
+ public var pixelSize = [Int32]()
+ public var reshapePixelSize = [Int32]()
+ public var willDeinit = Bool()
+
+ public var recentField = ""
+
+ public func field(_ name: String) -> T {
+ if (name == "backingPixelSize") {
+ return backingPixelSize as! T
+ }
+ else if (name == "didLaunch") {
+ return didLaunch as! T
+ }
+ else if (name == "didPrepareGL") {
+ return didPrepareGL as! T
+ }
+ else if (name == "didSetup") {
+ return didSetup as! T
+ }
+ else if (name == "pixelSize") {
+ return pixelSize as! T
+ }
+ else if (name == "reshapePixelSize") {
+ return reshapePixelSize as! T
+ }
+ else if (name == "willDeinit") {
+ return willDeinit as! T
+ }
+
+ return "unknown-field-name" as! T
+ }
+
+ public mutating func setField(
+ _ name: String,
+ _ value: Any
+ ) {
+ if (name == "backingPixelSize") {
+ backingPixelSize = value as! [Int32]
+ }
+ else if (name == "didLaunch") {
+ didLaunch = value as! Bool
+ }
+ else if (name == "didPrepareGL") {
+ didPrepareGL = value as! Bool
+ }
+ else if (name == "didSetup") {
+ didSetup = value as! Bool
+ }
+ else if (name == "pixelSize") {
+ pixelSize = value as! [Int32]
+ }
+ else if (name == "reshapePixelSize") {
+ reshapePixelSize = value as! [Int32]
+ }
+ else if (name == "willDeinit") {
+ willDeinit = value as! Bool
+ }
+
+ }
+}
+
+public func blueSet(
+ _ key: String,
+ _ value: Any
+) {
+ BlueComponent.singleton!.ctrl.set(key, value)
+}
+
+public func renderSet(
+ _ key: String,
+ _ value: Any
+) {
+ RenderComponent.singleton!.ctrl.set(key, value)
+}
+
+func blueShouldResetDidLaunch(_ c: BlueContext) -> BlueContext {
+ var c = c
+
+ /* 1. Only once during the first setup */
+ if
+ c.recentField == F.didSetup &&
+ c.didLaunch == false
+ {
+ c.didLaunch = true
+ c.recentField = F.didLaunch
+ return c
+ }
+
+
+ c.recentField = DIALECT_CONTEXT_RECENT_FIELD_NONE
+ return c
+}
+
+func renderShouldResetDidLaunch(_ c: RenderContext) -> RenderContext {
+ var c = c
+
+ /* 1. Only once during the first setup */
+ if
+ c.recentField == F.didSetup &&
+ c.didLaunch == false
+ {
+ c.didLaunch = true
+ c.recentField = F.didLaunch
+ return c
+ }
+
+
+ c.recentField = DIALECT_CONTEXT_RECENT_FIELD_NONE
+ return c
+}
+
+func renderShouldResetPixelSize(_ c: RenderContext) -> RenderContext {
+ var c = c
+
+ /* 1. Upon launch */
+ if
+ c.recentField == F.didLaunch
+ {
+ c.pixelSize = [1, 1]
+ c.recentField = F.pixelSize
+ return c
+ }
+
+ /* 2. Upon resize */
+ if
+ c.recentField == F.reshapePixelSize
+ {
+ c.pixelSize = c.reshapePixelSize
+ c.recentField = F.pixelSize
+ return c
+ }
+
+ /* 3. Upon DPI change */
+ if
+ c.recentField == F.backingPixelSize
+ {
+ c.pixelSize = c.backingPixelSize
+ c.recentField = F.pixelSize
+ return c
+ }
+
+
+ c.recentField = DIALECT_CONTEXT_RECENT_FIELD_NONE
+ return c
+}
+
+func blueRegisterShoulds(_ ctrl: DialectController) {
+ [
+ blueShouldResetDidLaunch,
+
+ ].forEach { f in
+ ctrl.registerFunction { c in f(c as! BlueContext) }
+ }
+}
+
+func renderRegisterShoulds(_ ctrl: DialectController) {
+ [
+ renderShouldResetDidLaunch,
+ renderShouldResetPixelSize,
+
+ ].forEach { f in
+ ctrl.registerFunction { c in f(c as! RenderContext) }
+ }
+}
+
+func renderRegisterEffects(_ ctrl: DialectController) {
+ let _: RenderContext? = registerOneliners(ctrl, [
+ F.didPrepareGL, { (c: RenderContext) in renderInit(RenderVM.shared!) },
+ F.didPrepareGL, { (c: RenderContext) in RenderVM.shared!.didPrepareGL = true },
+ F.didPrepareGL, { (c: RenderContext) in renderStartTimer(RenderVM.shared!) },
+ F.didPrepareGL, { (c: RenderContext) in renderLoadCubeModel(RenderVM.shared!) },
+ F.pixelSize, { (c: RenderContext) in RenderVM.shared!.pixelSize = c.pixelSize },
+ F.willDeinit, { (c: RenderContext) in renderDeinit(RenderVM.shared!) },
+
+ ])
+}
diff --git a/ogs-blue/ver-mac/src/other/other.swift b/ogs-blue/ver-mac/src/other/other.swift
new file mode 120000
index 0000000..f91488c
--- /dev/null
+++ b/ogs-blue/ver-mac/src/other/other.swift
@@ -0,0 +1 @@
+../../../../components/other/other.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/raybri/raybri.c b/ogs-blue/ver-mac/src/raybri/raybri.c
new file mode 120000
index 0000000..52b1940
--- /dev/null
+++ b/ogs-blue/ver-mac/src/raybri/raybri.c
@@ -0,0 +1 @@
+../../../../components/raybri/raybri.c
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/raybri/raybri.h b/ogs-blue/ver-mac/src/raybri/raybri.h
new file mode 120000
index 0000000..daec20f
--- /dev/null
+++ b/ogs-blue/ver-mac/src/raybri/raybri.h
@@ -0,0 +1 @@
+../../../../components/raybri/raybri.h
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/render/render.swift b/ogs-blue/ver-mac/src/render/render.swift
new file mode 120000
index 0000000..5e4b117
--- /dev/null
+++ b/ogs-blue/ver-mac/src/render/render.swift
@@ -0,0 +1 @@
+../../../../components/render/render.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/render/renderAux.swift b/ogs-blue/ver-mac/src/render/renderAux.swift
new file mode 120000
index 0000000..1975b82
--- /dev/null
+++ b/ogs-blue/ver-mac/src/render/renderAux.swift
@@ -0,0 +1 @@
+../../../../components/render/renderAux.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/render/renderConst.swift b/ogs-blue/ver-mac/src/render/renderConst.swift
new file mode 120000
index 0000000..d953714
--- /dev/null
+++ b/ogs-blue/ver-mac/src/render/renderConst.swift
@@ -0,0 +1 @@
+../../../../components/render/renderConst.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/render/renderConstShader.swift b/ogs-blue/ver-mac/src/render/renderConstShader.swift
new file mode 120000
index 0000000..2dcc2d4
--- /dev/null
+++ b/ogs-blue/ver-mac/src/render/renderConstShader.swift
@@ -0,0 +1 @@
+../../../../components/render/renderConstShader.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/render/renderEffect.swift b/ogs-blue/ver-mac/src/render/renderEffect.swift
new file mode 120000
index 0000000..d269bb5
--- /dev/null
+++ b/ogs-blue/ver-mac/src/render/renderEffect.swift
@@ -0,0 +1 @@
+../../../../components/render/renderEffect.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/render/renderVM.swift b/ogs-blue/ver-mac/src/render/renderVM.swift
new file mode 120000
index 0000000..dde0ace
--- /dev/null
+++ b/ogs-blue/ver-mac/src/render/renderVM.swift
@@ -0,0 +1 @@
+../../../../components/render/renderVM.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/render/view/RenderGLView.swift b/ogs-blue/ver-mac/src/render/view/RenderGLView.swift
new file mode 120000
index 0000000..7223ae3
--- /dev/null
+++ b/ogs-blue/ver-mac/src/render/view/RenderGLView.swift
@@ -0,0 +1 @@
+../../../../../components/render/mac/view/RenderGLView.swift
\ No newline at end of file
diff --git a/ogs-blue/ver-mac/src/render/view/RenderView.swift b/ogs-blue/ver-mac/src/render/view/RenderView.swift
new file mode 120000
index 0000000..754ef01
--- /dev/null
+++ b/ogs-blue/ver-mac/src/render/view/RenderView.swift
@@ -0,0 +1 @@
+../../../../../components/render/mac/view/RenderView.swift
\ No newline at end of file