From db81b925d776103326128bf629cbdda576a223e7 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 16 Apr 2022 11:55:09 -0500 Subject: move 3rd-party librarys into libs/ and add built-in honeysuckle --- libs/assimp/port/assimp_rs/src/structs/texture/mod.rs | 3 +++ .../port/assimp_rs/src/structs/texture/texture.rs | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 libs/assimp/port/assimp_rs/src/structs/texture/mod.rs create mode 100644 libs/assimp/port/assimp_rs/src/structs/texture/texture.rs (limited to 'libs/assimp/port/assimp_rs/src/structs/texture') diff --git a/libs/assimp/port/assimp_rs/src/structs/texture/mod.rs b/libs/assimp/port/assimp_rs/src/structs/texture/mod.rs new file mode 100644 index 0000000..1b5c930 --- /dev/null +++ b/libs/assimp/port/assimp_rs/src/structs/texture/mod.rs @@ -0,0 +1,3 @@ +mod texture; +pub use self::texture::Texel; + diff --git a/libs/assimp/port/assimp_rs/src/structs/texture/texture.rs b/libs/assimp/port/assimp_rs/src/structs/texture/texture.rs new file mode 100644 index 0000000..b2c72f3 --- /dev/null +++ b/libs/assimp/port/assimp_rs/src/structs/texture/texture.rs @@ -0,0 +1,19 @@ +#[derive(Clone, Debug, Copy)] +struct Texel { + b: u32, + g: u32, + r: u32, + a: u32 +} + +impl Texel { + pub fn new(b_u32: u32, g_u32: u32, + r_u32: u32, a_u32: u32) -> Texel { + Texel { + b: b_u32, + g: g_u32, + r: r_u32, + a: a_u32 + } + } +} -- cgit v1.2.1