load model on click

This commit is contained in:
Михаил Капелько committed 2026-10-19 18:32:50 +03:00
1 parent cc29a5fc93
commit 4905098d28
3 files changed
+4 -6

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
import Foundation
import RaylibBridge
func renderLoadCubeModel() {
func renderLoadCubeModel(_ vm: RenderVM) {
let path = Bundle.main.resourceURL!.path + RENDER_MODEL_CUBE
print("ИГР renderLCB path: '\(path)'")
vm.glView.openGLContext?.makeCurrentContext()
sr_load_model(path)
}