Remove TextureManager.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use std::collections::HashMap;
|
||||
use sdl2::render::{Texture, Renderer};
|
||||
use sdl2::rect::Rect;
|
||||
|
||||
@@ -9,17 +8,6 @@ pub trait Sprite {
|
||||
}
|
||||
|
||||
|
||||
pub struct TextureManager<'a> {
|
||||
textures: HashMap<String, &'a Texture>
|
||||
}
|
||||
|
||||
impl<'a> TextureManager<'a> {
|
||||
pub fn insert_texture(&mut self, key: String, texture: &'a Texture) {
|
||||
self.textures.insert(key, texture);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub struct StaticSprite<'a> {
|
||||
texture: &'a Texture,
|
||||
x: i32,
|
||||
|
||||
Reference in New Issue
Block a user