summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2024-08-15 20:16:32 -0400
committerMicha White <botahamec@outlook.com>2024-08-15 20:16:32 -0400
commitdb9aa9f1bf49e8bede384b9ceb1e1fb82b522799 (patch)
tree0d60727acf481f59b42ef0f74ed07c16ec562bcf /src/main.rs
parentf8a80039c74332e2101a177ef3fde31ef2077224 (diff)
Delete stuff
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.rs b/src/main.rs
index 717599d..ade657e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -7,7 +7,6 @@ use std::path::Path;
use alligator_scripts::ScriptManager;
use alligator_sprites::SpriteManager;
use alligator_sys::{Renderer, RendererConfig, Window, WindowConfig, WindowEvent};
-use alligator_textures::TextureManager;
use serde::Deserialize;
use sha3::{Digest, Sha3_256};
@@ -65,19 +64,6 @@ pub struct Config {
vsync: bool,
}
-fn texture_manager(config: &Config) -> TextureManager {
- let mut textures = TextureManager::new(config.default_textures_size_target);
- for (key, texture) in config.textures.iter() {
- textures.add_texture(
- key.clone().into(),
- texture.path.clone().into(),
- texture.size,
- );
- }
-
- textures
-}
-
fn sprite_manager(config: &Config) -> SpriteManager {
SpriteManager::with_capacity(config.sprite_manager_capacity as usize)
}
@@ -137,7 +123,6 @@ fn main() {
let config = File::open("game.json").unwrap();
let config: Config = serde_json::from_reader(config).unwrap();
- let textures = texture_manager(&config);
let sprites = sprite_manager(&config);
let scripts = script_manager(&config);
let mut window = window(&config);