summaryrefslogtreecommitdiff
path: root/engine/src/rendering.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-07-14 16:12:28 +0200
committerHampusM <hampus@hampusmat.com>2026-07-14 16:12:28 +0200
commit5be7004d96560b4a452b063c410637006083f34a (patch)
tree57833b067084c7f98e1d66fc7dfe0a4221578bfa /engine/src/rendering.rs
parentd3e678fa6112ac82b59e638c41cde8b9c4b0035e (diff)
fix(engine): make UpdateTexture rendering command take Image, not TextureHEADmaster
Diffstat (limited to 'engine/src/rendering.rs')
-rw-r--r--engine/src/rendering.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/src/rendering.rs b/engine/src/rendering.rs
index 9a6350e..87c3b6f 100644
--- a/engine/src/rendering.rs
+++ b/engine/src/rendering.rs
@@ -19,6 +19,7 @@ use crate::ecs::system::initializable::Initializable;
use crate::ecs::system::observer::Observe;
use crate::ecs::system::Into;
use crate::ecs::{declare_entity, Component, Query, Sole};
+use crate::image::Image;
use crate::mesh::Mesh;
use crate::rendering::blending::Config as BlendingConfig;
use crate::rendering::object::{Id as ObjectId, Store as ObjectStore};
@@ -241,7 +242,7 @@ pub enum Command
UpdateTexture
{
obj_id: ObjectId,
- texture: AssetOrValue<Texture>,
+ image: Image,
offset: Vec2<u32>,
},
RemoveTexture(ObjectId),