Skip to content

Commit

Permalink
Rename texture.rs to pool.rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaspianA1 committed Jan 21, 2025
1 parent 84a8ead commit 56a00de
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions src/dashboard_defs/easing_fns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn ease_out_bounce(mut x: f64) -> f64 {
//////////

pub mod scroll {
use crate::texture::texture::TextTextureScrollEaser;
use crate::texture::pool::TextTextureScrollEaser;

pub const STAY_PUT: TextTextureScrollEaser = (|_, _| (0.0, true), 1.0);

Expand Down Expand Up @@ -54,7 +54,7 @@ pub mod scroll {
pub mod transition {
pub mod opacity {
use crate::{
texture::texture::TextureTransitionOpacityEaser,
texture::pool::TextureTransitionOpacityEaser,

dashboard_defs::easing_fns::{
ease_out_bounce,
Expand Down Expand Up @@ -92,7 +92,7 @@ pub mod transition {
pub mod aspect_ratio {
use crate::{
dashboard_defs::easing_fns::ease_out_bounce,
texture::texture::TextureTransitionAspectRatioEaser
texture::pool::TextureTransitionAspectRatioEaser
};

pub const LINEAR: TextureTransitionAspectRatioEaser = |percent_done| percent_done;
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/funky_remake_transitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
generic_result::*
},

texture::texture::{
texture::pool::{
TexturePool,
TextureCreationInfo,
RemakeTransitionInfo,
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/shared_window_state.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
spinitron::state::SpinitronState,
texture::texture::{FontInfo, TextureCreationInfo},
texture::pool::{FontInfo, TextureCreationInfo},
dashboard_defs::{twilio::TwilioState, clock::ClockHands, error::ErrorState}
};

Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/spinitron.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
shared_window_state::SharedWindowState
},

texture::texture::{
texture::pool::{
DisplayText,
TextDisplayInfo,
TextureCreationInfo
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/surprise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use crate::{
update_rate::{Seconds, UpdateRateCreator}
},

texture::texture::{TexturePool, TextureCreationInfo},
texture::pool::{TexturePool, TextureCreationInfo},
dashboard_defs::shared_window_state::SharedWindowState

};
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/themes/barebones.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use sdl2::{render::BlendMode, ttf::{FontStyle, Hinting}};
use crate::{
themes::shared_utils::*,
spinitron::{model::SpinitronModelName, state::SpinitronState},
texture::texture::{FontInfo, TextureCreationInfo, TexturePool, RemakeTransitionInfo},
texture::pool::{FontInfo, TextureCreationInfo, TexturePool, RemakeTransitionInfo},

utility_types::{
file_utils,
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/themes/retro_room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use sdl2::{render::BlendMode, ttf::{FontStyle, Hinting}};
use crate::{
themes::shared_utils::*,
spinitron::{model::SpinitronModelName, state::SpinitronState},
texture::texture::{FontInfo, TextureCreationInfo, TexturePool, RemakeTransitionInfo},
texture::pool::{FontInfo, TextureCreationInfo, TexturePool, RemakeTransitionInfo},

utility_types::{
file_utils,
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/themes/shared_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::sync::atomic::{AtomicUsize, Ordering};
use crate::{
error_msg,
window_tree::{Window, WindowContents},
texture::texture::{TextureCreationInfo, TexturePool},
texture::pool::{TextureCreationInfo, TexturePool},

utility_types::{
file_utils,
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/themes/standard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use sdl2::{render::BlendMode, ttf::{FontStyle, Hinting}};
use crate::{
themes::shared_utils::*,
spinitron::{model::SpinitronModelName, state::SpinitronState},
texture::texture::{FontInfo, TextureCreationInfo, TexturePool, RemakeTransitionInfo},
texture::pool::{FontInfo, TextureCreationInfo, TexturePool, RemakeTransitionInfo},

utility_types::{
file_utils,
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/twilio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::{

texture::{
subpool_manager::TextureSubpoolManager,
texture::{FontInfo, DisplayText, TextDisplayInfo, TextureCreationInfo, TextureHandle, TexturePool, RemakeTransitionInfo}
pool::{FontInfo, DisplayText, TextDisplayInfo, TextureCreationInfo, TextureHandle, TexturePool, RemakeTransitionInfo}
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/updatable_text_pattern.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::borrow::Cow;

use crate::{
texture::texture::{
texture::pool::{
FontInfo,
DisplayText,
TextDisplayInfo,
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard_defs/weather.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{collections::HashMap, borrow::Cow};

use crate::{
request,
texture::texture::{DisplayText, TextDisplayInfo, TextureCreationInfo},
texture::pool::{DisplayText, TextDisplayInfo, TextureCreationInfo},

utility_types::{
vec2f::Vec2f,
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn get_fps(sdl_timer: &sdl2::TimerSubsystem,
}

/*
fn check_for_texture_pool_memory_leak(initial_num_textures_in_pool: &mut Option<usize>, texture_pool: &texture::texture::TexturePool) {
fn check_for_texture_pool_memory_leak(initial_num_textures_in_pool: &mut Option<usize>, texture_pool: &texture::pool::TexturePool) {
let num_textures_in_pool = texture_pool.size();
match initial_num_textures_in_pool {
Expand Down Expand Up @@ -204,7 +204,7 @@ async fn main() -> MaybeError {
let mut rendering_params =
window_tree::PerFrameConstantRenderingParams {
sdl_canvas,
texture_pool: texture::texture::TexturePool::new(&texture_creator, &sdl_ttf_context, max_texture_size, MAX_REMAKE_TRANSITION_QUEUE_SIZE),
texture_pool: texture::pool::TexturePool::new(&texture_creator, &sdl_ttf_context, max_texture_size, MAX_REMAKE_TRANSITION_QUEUE_SIZE),
frame_counter: FrameCounter::new(),
shared_window_state: DynamicOptional::NONE
};
Expand Down
2 changes: 1 addition & 1 deletion src/spinitron/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use derive_alias::derive_alias;
use serde::{Serialize, Deserialize};

use crate::{
texture::texture::TextureCreationInfo,
texture::pool::TextureCreationInfo,

utility_types::{
time::*,
Expand Down
2 changes: 1 addition & 1 deletion src/spinitron/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::borrow::Cow;

use crate::{
request,
texture::texture::TextureCreationInfo,
texture::pool::TextureCreationInfo,
dashboard_defs::error::ErrorState,

utility_types::{
Expand Down
2 changes: 1 addition & 1 deletion src/texture/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod texture;
pub mod pool;
pub mod subpool_manager;
File renamed without changes.
2 changes: 1 addition & 1 deletion src/texture/subpool_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::collections::HashMap;
use crate::{
utility_types::generic_result::*,

texture::texture::{
texture::pool::{
TextureHandle, TextureCreationInfo,
RemakeTransitionInfo, TexturePool
}
Expand Down
2 changes: 1 addition & 1 deletion src/window_tree.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use sdl2::{self, rect::FRect};

use crate::{
texture::texture::{
texture::pool::{
TexturePool,
TextureHandle,
TextureCreationInfo,
Expand Down

0 comments on commit 56a00de

Please sign in to comment.