Skip to content

Commit

Permalink
refactor: re-export TextureSize and Texture from texture/mod.rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
UserIsntAvailable committed Jan 27, 2024
1 parent df7235c commit 5d47b87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion engine/src/asset/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod dat;

use super::{
extension::*,
texture::dat::{size::TextureSize, texture::Texture},
texture::{Texture, TextureSize},
AssetParser,
};
use crate::utils::nom::*;
Expand Down
2 changes: 1 addition & 1 deletion engine/src/asset/skybox.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::{
extension::*,
texture::dat::{size::TextureSize, texture::Texture},
texture::{Texture, TextureSize},
AssetParser,
};
use crate::{asset::color_map::Color, utils::nom::*};
Expand Down
8 changes: 3 additions & 5 deletions engine/src/asset/texture/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// TODO(nenikitov): When textures are moved to a separate public module later,
// this `pub(crate)` could be deleted
pub(crate) mod dat;
mod dat;

use self::dat::texture::Texture;
use super::{extension::*, AssetParser};
use crate::utils::{compression::decompress, nom::*};
use dat::{offset::TextureOffset, size::TextureSize, texture::MippedTexture};
use dat::{offset::TextureOffset, texture::MippedTexture};
pub use dat::{size::TextureSize, texture::Texture};

pub enum TextureMipKind {
NonMipped(Texture),
Expand Down

0 comments on commit 5d47b87

Please sign in to comment.