diff options
| author | HampusM <hampus@hampusmat.com> | 2026-08-28 18:32:58 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-08-28 18:32:58 +0200 |
| commit | be94cec078e86e643f52f0f3041a98b36e43ec8b (patch) | |
| tree | 0e79657d85020e76b0dc3e0586f9dcdacbfcd14e /engine/src/texture.rs | |
| parent | d04bc21ac58a0bd8bcf8fa2fbb87f7b1dd4b140e (diff) | |
Diffstat (limited to 'engine/src/texture.rs')
| -rw-r--r-- | engine/src/texture.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/engine/src/texture.rs b/engine/src/texture.rs index 3bfe171..0c3e884 100644 --- a/engine/src/texture.rs +++ b/engine/src/texture.rs @@ -1,17 +1,9 @@ use std::path::Path; -use std::sync::LazyLock; -use crate::asset::{Assets, Label as AssetLabel, Submitter as AssetSubmitter}; +use crate::asset::{Assets, Submitter as AssetSubmitter}; use crate::builder; -use crate::color::Rgba; -use crate::data_types::dimens::Dimens; use crate::image::{Error as ImageError, Image}; -pub static WHITE_1X1_ASSET_LABEL: LazyLock<AssetLabel> = LazyLock::new(|| AssetLabel { - path: Path::new("").into(), - name: Some("white_1x1_texture".into()), -}); - #[derive(Debug, Clone)] pub enum Texture { @@ -132,14 +124,6 @@ impl Default for ImportSettingsBuilder pub(crate) fn initialize(assets: &mut Assets) { assets.set_importer::<_, _>(["png", "jpg"], import); - - assets.store_with_label( - WHITE_1X1_ASSET_LABEL.clone(), - Texture::Texture2D(Tex2D { - image: Image::from_color(Rgba::<u8>::white(), Dimens { width: 1, height: 1 }), - properties: Properties::default(), - }), - ); } fn import( |
