diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 21:44:49 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 21:44:49 +0100 |
| commit | 952dc19e0eeec2b0ba695970ac3f5a2997e39c77 (patch) | |
| tree | 10a484496fc9c8acf9b389c9d9a78c6637d803c8 /src/rendering.h | |
| parent | 29805da671f7dd13f9e1b25800ac6a846391d355 (diff) | |
working on atlas
Diffstat (limited to 'src/rendering.h')
| -rw-r--r-- | src/rendering.h | 7 |
1 files changed, 5 insertions, 2 deletions
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); |
