cute_framework icon indicating copy to clipboard operation
cute_framework copied to clipboard

Improve docs on how to use png_cache

Open LimycHypixel opened this issue 3 years ago • 1 comments

The docs are unclear that in order to draw stuff using a png_cache, you must call make_batch(png_cache_get_pixels_fn(my_png_cache), my_png_cache) create a custom batch_t.

If you fail to create the custom batcher and just use sprite_get_batch() like I did, you'll get an error in the console when attempting to draw a sprite inside a png_cache_t. The error is "Aseprite cache -- unable to find id <img_id>"

LimycHypixel avatar Feb 03 '22 11:02 LimycHypixel

Relevant https://github.com/RandyGaul/cute_framework/issues/35

RandyGaul avatar Feb 03 '22 11:02 RandyGaul

https://github.com/RandyGaul/cute_framework/commit/8d0a70606c1084ac37c9040285d39839dd40282d

RandyGaul avatar Feb 05 '24 03:02 RandyGaul