summaryrefslogtreecommitdiff
path: root/engine/src/opengl
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-05-25 17:34:45 +0200
committerHampusM <hampus@hampusmat.com>2025-06-03 14:08:40 +0200
commita109ac00e67129ddb358b6416a3241f22a441ad9 (patch)
treeb0d245c01ef4be675aacfcabd6ccfc6b7cd5889e /engine/src/opengl
parent68a97b0123da1f181d1c78a7f760c55c3f341014 (diff)
feat(engine): add asset management
Diffstat (limited to 'engine/src/opengl')
-rw-r--r--engine/src/opengl/texture.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/engine/src/opengl/texture.rs b/engine/src/opengl/texture.rs
index 52c8554..ffc978b 100644
--- a/engine/src/opengl/texture.rs
+++ b/engine/src/opengl/texture.rs
@@ -223,18 +223,9 @@ macro_rules! texture_unit_enum {
)*
}
}
-
- pub fn from_num(num: usize) -> Option<Self> {
- match num {
- #(
- N => Some(Self::No~N),
- )*
- _ => None
- }
- }
}
});
};
}
-texture_unit_enum!(cnt = 31);
+texture_unit_enum!(cnt = 3);