diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-05 21:28:53 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-05 21:29:02 +0200 |
commit | c9d5bbfe490aa4aab0e9de02b67bf8fee6dca5a2 (patch) | |
tree | 03210fe1672f84bed6834a01f087b032bc35fc17 /engine/src/texture.rs | |
parent | 9530d22cf5369ceba369487fff1b85376da64657 (diff) |
refactor(engine): make Material hold textures
Diffstat (limited to 'engine/src/texture.rs')
-rw-r--r-- | engine/src/texture.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/engine/src/texture.rs b/engine/src/texture.rs index 88c57bd..f9bed1e 100644 --- a/engine/src/texture.rs +++ b/engine/src/texture.rs @@ -196,20 +196,3 @@ impl Display for Id self.id.fmt(formatter) } } - -/// Texture list. -#[derive(Component)] -pub struct List -{ - pub list: Vec<Texture>, -} - -impl FromIterator<Texture> for List -{ - fn from_iter<Iter>(iter: Iter) -> Self - where - Iter: IntoIterator<Item = Texture>, - { - Self { list: iter.into_iter().collect() } - } -} |