From 65e24308babb2ed4f33fb6f1d7b531df676bd70d Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 17 Jul 2026 03:06:04 +0200 Subject: refactor(engine): change Color struct into a enum --- engine/src/texture.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'engine/src/texture.rs') 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::::white(), Dimens { width: 1, height: 1 }), properties: Properties::default(), }, ); -- cgit v1.2.3-18-g5258