summaryrefslogtreecommitdiff
path: root/libs/assimp/port/assimp_rs/src/structs/texture
diff options
context:
space:
mode:
Diffstat (limited to 'libs/assimp/port/assimp_rs/src/structs/texture')
-rw-r--r--libs/assimp/port/assimp_rs/src/structs/texture/mod.rs3
-rw-r--r--libs/assimp/port/assimp_rs/src/structs/texture/texture.rs19
2 files changed, 22 insertions, 0 deletions
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
+ }
+ }
+}