From 034028807665e84f7c62de5901a3d82c8b5e880e Mon Sep 17 00:00:00 2001 From: Omniscient Date: Sat, 5 Oct 2024 13:48:35 +1000 Subject: cleaning up rust binding --- bindgen/rust/src/resources.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'bindgen/rust/src/resources.rs') 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 { - 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 { +// let path_str = CString::new(path).unwrap(); +// let handle = unsafe { ModelLoad_gltf(path_str.as_ptr() as *const _, false) }; +// Some(handle) +// } -- cgit v1.2.3-70-g09d2