diff options
| author | HampusM <hampus@hampusmat.com> | 2026-07-16 17:33:13 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-07-16 17:33:13 +0200 |
| commit | 6e3864ded2ca04cbe5918c6b3efc7d49d07d4afd (patch) | |
| tree | 0b04592a83208fdb70f066bcefc35b68913b8886 /engine/src/util.rs | |
| parent | 36ac75583923692e3a12f9d2e7e8f2d7b9dc603a (diff) | |
feat(engine): use modern dear imgui texture system in dear imgui backend
Diffstat (limited to 'engine/src/util.rs')
| -rw-r--r-- | engine/src/util.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/src/util.rs b/engine/src/util.rs index 08e2227..a8ee893 100644 --- a/engine/src/util.rs +++ b/engine/src/util.rs @@ -10,6 +10,11 @@ pub struct MapVec<Key: Ord, Value> impl<Key: Ord, Value> MapVec<Key, Value> { + pub fn with_capacity(capacity: usize) -> Self + { + Self { inner: Vec::with_capacity(capacity) } + } + pub fn insert(&mut self, key: Key, value: Value) { self.inner |
