Commit graph

9 commits

Author SHA1 Message Date
Alberto Torres 60a896f513 Workaround for images with less channels than the supposed texture format. 2024-09-13 02:18:37 +02:00
Alberto Torres 5b588fddf1 Allow compilation with threads off. 2024-09-13 02:15:32 +02:00
Alberto Torres dd75d19399 Use quality settings for BCn formats in texture_optimize. 2024-09-10 00:50:33 +02:00
Alberto Torres f7108225bd Add some documentation and fix fixdocs.nim. 2024-09-06 01:16:06 +02:00
Alberto Torres 45dc99b483 Add CacheSettings for automatically saving and loading compressed textures. 2024-09-06 01:14:35 +02:00
Alberto Torres 7f0ebc122a Add support for BCn texture compression formats (except BC2, BC6) with BC7enc. 2024-09-05 00:22:05 +02:00
Alberto Torres 878137db71 Load textures in a thread and optionally compress them (in ASTC only for now). 2024-09-03 15:59:15 +02:00
Alberto Torres d784dd3a52 Replace the use of pointer/len and "done()" by SliceMem and destructors. 2024-08-31 00:40:02 +02:00
Alberto Torres 49d919f43d Move API-agnostic image procs out of texture, to prepare to add threads.
* Procs `loadFileFromPointersLen`, `getDimensionsFormat` and related graphics
API-agnostic functions have been moved into their own module `texture_decode`.
* New directory `gpu_formats` added, where we will put all modules related to
decoding, optimizing and caching meshes and textures (independently of the
graphics API being used) in a separate thread or threads.
2024-08-29 22:54:04 +02:00