diff options
author | sanine <sanine.not@pm.me> | 2023-02-12 23:53:22 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-02-12 23:53:22 -0600 |
commit | f1fe73d1909a2448a004a88362a1a532d0d4f7c3 (patch) | |
tree | ab37ae3837e2f858de2932bcee9f26e69fab3db1 /libs/assimp/port/assimp_rs/src/structs/string | |
parent | f567ea1e2798fd3156a416e61f083ea3e6b95719 (diff) |
switch to tinyobj and nanovg from assimp and cairo
Diffstat (limited to 'libs/assimp/port/assimp_rs/src/structs/string')
-rw-r--r-- | libs/assimp/port/assimp_rs/src/structs/string/mod.rs | 3 | ||||
-rw-r--r-- | libs/assimp/port/assimp_rs/src/structs/string/string.rs | 41 |
2 files changed, 0 insertions, 44 deletions
diff --git a/libs/assimp/port/assimp_rs/src/structs/string/mod.rs b/libs/assimp/port/assimp_rs/src/structs/string/mod.rs deleted file mode 100644 index f599ba7..0000000 --- a/libs/assimp/port/assimp_rs/src/structs/string/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -mod string; -pub use self::string::MAXLEN; -pub use self::string::Str; diff --git a/libs/assimp/port/assimp_rs/src/structs/string/string.rs b/libs/assimp/port/assimp_rs/src/structs/string/string.rs deleted file mode 100644 index b88457d..0000000 --- a/libs/assimp/port/assimp_rs/src/structs/string/string.rs +++ /dev/null @@ -1,41 +0,0 @@ -pub const MAXLEN: usize = 1024; - -/// Want to consider replacing `Vec<char>` -/// with a comparable definition at -/// https://doc.rust-lang.org/src/alloc/string.rs.html#415-417 -#[derive(Clone, Debug)] -struct Str { - length: usize, - data: Vec<char> -} - -impl Str { - pub fn new(len_u32: usize, data_string: String) -> Str { - Str { - length: len_u32, - data: data_string.chars().collect() - } - } -} - -/// MaterialPropertyStr -/// The size of length is truncated to 4 bytes on a 64-bit platform when used as a -/// material property (see MaterialSystem.cpp, as aiMaterial::AddProperty() ). -#[derive(Clone, Debug)] -struct MaterialPropertyStr { - length: usize, - data: Vec<char> -} - - -impl MaterialPropertyStr { - pub fn new(len_u32: usize, data_string: String) -> MaterialPropertyStr { - MaterialPropertyStr { - length: len_u32, - data: data_string.chars().collect() - } - } -} - - - |