1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#pragma once #include <cglm/cglm.h> #include "cglm/types.h" #include "utils.h" struct uv_s { vec2 uv0; vec2 uv1; }; typedef u32 atlas_t; bool atlas_init(atlas_t* atlas, u32 width, u32 height); void atlas_deinit(atlas_t* atlas);