diff options
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); |
