load model on click
This commit is contained in:
1 parent
cc29a5fc93
commit
4905098d28
3 files changed
+4
-6
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user