Commit graph

33 commits

Author SHA1 Message Date
2219f8c9ad Fix compiler warnings and hints. 2025-03-18 18:34:54 +01:00
a38138582e Add support for OpenImageIO. 2025-03-18 17:05:13 +01:00
DiThi
fb50b3a018 dds_ktx: Ignore files that are too big for the library. 2025-03-18 14:27:48 +01:00
DiThi
cee92ef69c Bc7enc: Fix missing stdc++ linking. 2025-03-18 14:26:54 +01:00
DiThi
9a727c566e Astc: Compile library with -O3 even in debug builds. 2025-03-18 14:26:21 +01:00
DiThi
adc21f8e29 ArrRef: Have SliceMem copy container contents instead of trying to store a reference. 2025-03-18 14:25:00 +01:00
cd05c590cc Rework texture loading and caching system:
* Create a cache module to query and load cached files without having to load or
download the original file, as well as comparing changed time and size.
* Change `loadUri` to allow fetching the modification time and size of a file.
* Change `onload` of `loadable` to have a single `FetchResult` objects instead
  of many arguments (ok, err, data, time, size).
* Removed Pixie support.
* Added a buffer copy to simplify potentially problematic code.
* Add cache_key to newTexture when loading from buffer.
* For packed images, use the name of the blend file and the image as cache_key.
2025-01-25 14:25:26 +01:00
79372d6cfc Android: Add 5 more myouAndroidGet* for JNI VM, app context, and EGL handles. 2025-01-21 13:05:10 +01:00
35497da6a6 GLFM: Update ASan no_sanitize attributes to both "address" and "hwaddress". 2025-01-21 13:01:18 +01:00
080d9bcc67 Loadable: add registerLogUriHandler() to get a log of loaded URIs. 2024-11-29 13:32:46 +01:00
6212b816f0 Loadable: Add registerCustomProtocol() for e.g. reading assets in mobile. 2024-11-29 13:30:32 +01:00
5b588fddf1 Allow compilation with threads off. 2024-09-13 02:15:32 +02:00
c8f9beaff9 Add all missing files in the packages directory. 2024-09-11 12:10:54 +02:00
b60c837c47 Create quickhull.nim with quickhull and quickhull_points functions. 2024-09-11 12:10:54 +02:00
90abbac26b SliceMem: change newSliceMem(ptr, len...) to match an example, add another. 2024-09-10 00:52:39 +02:00
dd75d19399 Use quality settings for BCn formats in texture_optimize. 2024-09-10 00:50:33 +02:00
45dc99b483 Add CacheSettings for automatically saving and loading compressed textures. 2024-09-06 01:14:35 +02:00
a8a0b35297 SliceMem: Add serialize, deserialize, toString, copy and documentation. 2024-09-06 01:08:58 +02:00
83011ea344 Add use_threads option to loadUri. 2024-09-05 16:48:35 +02:00
7f0ebc122a Add support for BCn texture compression formats (except BC2, BC6) with BC7enc. 2024-09-05 00:22:05 +02:00
878137db71 Load textures in a thread and optionally compress them (in ASTC only for now). 2024-09-03 15:59:15 +02:00
0949e1bf99 Add libraries: astc and stb_image_resize. 2024-09-03 15:31:00 +02:00
e31d416f94 Rename ddx_ktx to dds_ktx and add get_ASTC_internal_format 2024-09-03 14:43:06 +02:00
e759f25519 ArrRef and SliceMem: Add concat, suport for backward indexes, and fix $. 2024-09-03 14:42:57 +02:00
d784dd3a52 Replace the use of pointer/len and "done()" by SliceMem and destructors. 2024-08-31 00:40:02 +02:00
8eda3e5969 Add SliceMem, an object to safely move slices of memory around without copies. 2024-08-30 23:16:10 +02:00
78cafe6566 Add threading support to LoadableResource. 2024-08-29 00:19:52 +02:00
e748831f3a Fix crash with loadables in Android. Warn if done() is being called twice. 2024-08-29 00:13:37 +02:00
f1768275f4 Remove elvis and replace remaining nimble dependencies by git submodules. 2024-08-23 00:37:45 +02:00
19ed29e806 Replace pixie by stb_image. Add support for 16 bit images, TGA, PSD, HDR, etc. 2024-08-22 21:38:35 +02:00
0760ab745a ArrRef: Remove unnecessary copy of murmur3 hash code. 2024-08-22 01:51:10 +02:00
e7cdd61d38 Add zstd support for blend files. 2024-08-22 01:47:44 +02:00
9af1322937 First commit.
* Incomplete port of myou-engine-js to nimskull, after many months of work, and
  a few extra features that weren't exactly necessary for a "first commit" to
  work. Excuse the lack of commit history up to this point.
* Bare bones structure of the documentation and the process to update it.
* Restructure of the whole project to have a more sensible organization.
* Making submodules of forks of larger libraries.
* README, licenses, AUTHORS.md.
2024-08-20 13:08:19 +02:00