summaryrefslogtreecommitdiff
path: root/engine/src/texture.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-07-17 03:06:04 +0200
committerHampusM <hampus@hampusmat.com>2026-07-17 03:06:04 +0200
commit65e24308babb2ed4f33fb6f1d7b531df676bd70d (patch)
treedf9477d4b805cc6866a086833d6118505804dd3a /engine/src/texture.rs
parent649d4d4ab2f54ca12f75d2cba50e1adef2350dbe (diff)
refactor(engine): change Color struct into a enum
Diffstat (limited to 'engine/src/texture.rs')
-rw-r--r--engine/src/texture.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/engine/src/texture.rs b/engine/src/texture.rs
index b069228..af56e97 100644
--- a/engine/src/texture.rs
+++ b/engine/src/texture.rs
@@ -3,7 +3,7 @@ use std::sync::LazyLock;
use crate::asset::{Assets, Label as AssetLabel, Submitter as AssetSubmitter};
use crate::builder;
-use crate::color::Color;
+use crate::color::Rgba;
use crate::data_types::dimens::Dimens;
use crate::image::{Error as ImageError, Image};
@@ -111,11 +111,7 @@ pub(crate) fn initialize(assets: &mut Assets)
assets.store_with_label(
WHITE_1X1_ASSET_LABEL.clone(),
Texture {
- image: Image::from_color_and_alpha(
- Dimens { width: 1, height: 1 },
- Color::WHITE_U8,
- 1,
- ),
+ image: Image::from_color(Rgba::<u8>::white(), Dimens { width: 1, height: 1 }),
properties: Properties::default(),
},
);