Support iOS for ogs-blue (#7)

This commit was merged in pull request #7.
This commit is contained in:
kornerr committed 2026-10-30 15:17:24 +01:00
1 parent 37c4e6f442
commit 2b556a4a58
58 files changed
+710 -300

No files matched your search

+2
View File
@@ -20,6 +20,8 @@
<dict/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
+19 -3
View File
@@ -3,13 +3,29 @@ options:
bundleIdPrefix: org.opengamestudio
targets:
ogs-blue:
type: application
platform: iOS
dependencies:
- framework: .build/lib/libEGL.xcframework
embed: true
- framework: .build/lib/libGLESv2.xcframework
embed: true
deploymentTarget: "15.0"
platform: iOS
sources:
- path: Assets.xcassets
- path: src
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: org.opengamestudio.blue
GCC_PREPROCESSOR_DEFINITIONS:
- GL_GLEXT_PROTOTYPES=1
- GRAPHICS_API_OPENGL_ES3=1
- PLATFORM_IOS=1
HEADER_SEARCH_PATHS:
- "$(SRCROOT)/.build/include"
- "$(SRCROOT)/.build/lib/raylib.xcframework/ios-arm64_x86_64-simulator/raylib.framework/Headers"
- "$(SRCROOT)/.build/lib/raylib.xcframework/ios-arm64/raylib.framework/Headers"
INFOPLIST_FILE: Info.plist
LD_RUNPATH_SEARCH_PATHS:
- "$(inherited) @executable_path/Frameworks"
PRODUCT_BUNDLE_IDENTIFIER: org.opengamestudio.blue
SWIFT_OBJC_BRIDGING_HEADER: src/BlueBridgingHeader.h
type: application
+4
View File
@@ -6,6 +6,8 @@ final class AppDelegate:
{
let blue = BlueComponent()
let blueVM = BlueVM()
let render = RenderComponent()
let renderVM = RenderVM()
func application(
_ application: UIApplication,
@@ -13,6 +15,8 @@ final class AppDelegate:
) -> 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"
+5 -1
View File
@@ -6,7 +6,11 @@ struct BlueApp: App {
var body: some Scene {
WindowGroup {
BlueView(appDelegate.blueVM)
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/egl/egl.h
+1
View File
@@ -0,0 +1 @@
../../../../components/egl/eglConst.h
+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/ios/renderAux.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/render/renderConst.swift
+1
View File
@@ -0,0 +1 @@
../../../../components/render/ios/renderEffect.swift
@@ -1,4 +0,0 @@
func renderDeinit(_ vm: RenderVM) { }
func renderInit(_ vm: RenderVM) { }
func renderLoadCubeModel(_ vm: RenderVM) { }
func renderStartTimer(_ vm: RenderVM) { }
+1
View File
@@ -0,0 +1 @@
../../../../../components/render/ios/view/RenderView.swift