cf_register_premade_atlas¶
Category: draw
GitHub: cute_draw.h
Registers a premade atlas within the draw system.
CF_Texture cf_register_premade_atlas(const char* png_path, int sub_image_count, CF_AtlasSubImage* sub_images);
| Parameters | Description |
|---|---|
| png_path | A virtual path to the png_file for the atlas. See Virtual File System. |
Remarks¶
This function is useful if you want to load up atlases into CF. However, internally CF employs it's own online atlas compiler, so baking atlases is not necessary. This function is here just for convenience.
Call cf_destroy_texture on the return value when done.
Related Pages¶
CF_AtlasSubImage
cf_destroy_premade_atlas
cf_make_premade_sprite