Reduce ogs-blue/ver-mac to blue background (#6)

This commit was merged in pull request #6.
This commit is contained in:
kornerr committed 2026-10-26 04:26:17 +01:00
1 parent fb28dd55c7
commit 37c4e6f442
79 files changed
+902 -504

No files matched your search

@@ -0,0 +1,11 @@
import UIKit
final class RenderGLView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
+1 -6
View File
@@ -3,12 +3,7 @@ import RaylibBridge
func renderDraw(_ vm: RenderVM) {
vm.glView.openGLContext?.makeCurrentContext()
raybri_resize(vm.pixelSize[0], vm.pixelSize[1])
let t = Float(CACurrentMediaTime() - vm.startTime)
raybri_set_rotation(t * 6.0, t * 18.0, 0.0)
raybri_render()
raybriRender(vm.pixelSize[0], vm.pixelSize[1])
vm.glView.openGLContext?.flushBuffer()
}
-9
View File
@@ -1,13 +1,4 @@
import AppKit
import RaylibBridge
let RENDER_CONFIG = raybri_config(
fov_y: 45.0,
near_plane: 0.1,
far_plane: 1000.0,
shadow_size: 256,
ground_size: 40.0
)
let RENDER_FPS = 60.0
+2 -15
View File
@@ -6,7 +6,7 @@ func renderDeinit(_ vm: RenderVM) {
print("ИГР renderD")
vm.timer?.invalidate()
vm.glView.openGLContext?.makeCurrentContext()
raybri_shutdown()
raybriShutdown()
}
func renderInit(_ vm: RenderVM) {
@@ -16,20 +16,7 @@ func renderInit(_ vm: RenderVM) {
var swapInterval: Int32 = 1
vm.glView.openGLContext?.setValues(&swapInterval, for: .swapInterval)
// Init Raylib
raybri_init(
RENDER_SHADER_MAIN_VS,
RENDER_SHADER_MAIN_FS,
RENDER_SHADER_SHADOW_VS,
RENDER_SHADER_SHADOW_FS,
RENDER_CONFIG
)
}
func renderLoadCubeModel(_ vm: RenderVM) {
let path = Bundle.main.resourceURL!.path + RENDER_MODEL_CUBE
vm.glView.openGLContext?.makeCurrentContext()
raybri_load_model(path)
raybriInit()
}
func renderStartTimer(_ vm: RenderVM) {