diff options
| author | Micha White <botahamec@outlook.com> | 2023-02-04 13:25:45 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-02-04 13:25:45 -0500 |
| commit | 9fd7d6689d5d90679e4b0c12e463ef4e2f8bf515 (patch) | |
| tree | a0b127f1094b72d0966c2edea3d171e74001c875 /alligator_resources | |
| parent | 518a87ddb2e6ce908affce2773fc7f92beb52c73 (diff) | |
Have the renderer take the texture manager
Diffstat (limited to 'alligator_resources')
| -rw-r--r-- | alligator_resources/Cargo.toml | 2 | ||||
| -rw-r--r-- | alligator_resources/src/texture.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/alligator_resources/Cargo.toml b/alligator_resources/Cargo.toml index 3ccb084..d5d8276 100644 --- a/alligator_resources/Cargo.toml +++ b/alligator_resources/Cargo.toml @@ -13,3 +13,5 @@ texture_packer = { git = "https://github.com/botahamec/piston_texture_packer", b profiling = "1" bytemuck = { version = "1", features = ["extern_crate_alloc"] } parking_lot = "0.12" +log = "0.4" +dashmap = "5" diff --git a/alligator_resources/src/texture.rs b/alligator_resources/src/texture.rs index 90bc662..e5b4147 100644 --- a/alligator_resources/src/texture.rs +++ b/alligator_resources/src/texture.rs @@ -364,7 +364,7 @@ impl Default for TextureManagerConfig { impl TextureManager { /// Create a new `TextureManager` with the given config options. #[must_use] - pub fn new(config: TextureManagerConfig) -> Self { + pub fn new(config: &TextureManagerConfig) -> Self { let textures = DashMap::with_capacity(config.initial_capacity); Self { |
