summaryrefslogtreecommitdiff
path: root/bindgen/rust/src/resources.rs
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-10-05 13:48:35 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-10-05 13:48:35 +1000
commit034028807665e84f7c62de5901a3d82c8b5e880e (patch)
treed1d0b3f4c219d1ba3e2eabbcb5eb809f1b6ceadf /bindgen/rust/src/resources.rs
parenta49cc9f8948ce4c8d74d84ddf7f41826cd999dd9 (diff)
cleaning up rust binding
Diffstat (limited to 'bindgen/rust/src/resources.rs')
-rw-r--r--bindgen/rust/src/resources.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/bindgen/rust/src/resources.rs b/bindgen/rust/src/resources.rs
index e7f4505..7287632 100644
--- a/bindgen/rust/src/resources.rs
+++ b/bindgen/rust/src/resources.rs
@@ -1,10 +1,10 @@
-use std::ffi::CString;
+// use std::ffi::CString;
-use celeritas_sys::{ModelHandle, ModelLoad_gltf};
+// use celeritas_sys::{ModelHandle, ModelLoad_gltf};
-/// Load a gltf from disk
-pub fn model_load_gltf(path: &str) -> Option<ModelHandle> {
- let path_str = CString::new(path).unwrap();
- let handle = unsafe { ModelLoad_gltf(path_str.as_ptr() as *const _, false) };
- Some(handle)
-}
+// /// Load a gltf from disk
+// pub fn model_load_gltf(path: &str) -> Option<ModelHandle> {
+// let path_str = CString::new(path).unwrap();
+// let handle = unsafe { ModelLoad_gltf(path_str.as_ptr() as *const _, false) };
+// Some(handle)
+// }