diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-10-05 13:48:35 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-10-05 13:48:35 +1000 |
commit | 034028807665e84f7c62de5901a3d82c8b5e880e (patch) | |
tree | d1d0b3f4c219d1ba3e2eabbcb5eb809f1b6ceadf /bindgen/rust/src/resources.rs | |
parent | a49cc9f8948ce4c8d74d84ddf7f41826cd999dd9 (diff) |
cleaning up rust binding
Diffstat (limited to 'bindgen/rust/src/resources.rs')
-rw-r--r-- | bindgen/rust/src/resources.rs | 16 |
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) +// } |