From 952dc19e0eeec2b0ba695970ac3f5a2997e39c77 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Wed, 11 Feb 2026 21:44:49 +0100 Subject: working on atlas --- src/rendering.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/rendering.h') diff --git a/src/rendering.h b/src/rendering.h index b70d366..8927eff 100644 --- a/src/rendering.h +++ b/src/rendering.h @@ -55,10 +55,13 @@ void wayc_sampler_deinit(sampler_t* sampler); struct atlas_s { texture_t texture; sampler_t sampler; - ivec2 cursor; u32 width, height; + image_format_e format; }; -bool wayc_atlas_init(atlas_s* atlas, u32 width, u32 height); +bool wayc_atlas_init(atlas_s* atlas, image_format_e format, u32 width, + u32 height); void wayc_atlas_use(atlas_s* atlas, u32 slot); +void wayc_atlas_set(atlas_s* atlas, image_data_type_e data_type, ivec2 offset, + u32 width, u32 height, const u8* data); void wayc_atlas_deinit(atlas_s* atlas); -- cgit v1.2.3