Commit graph

349 commits

Author SHA1 Message Date
e3030416ce Replace sprintf with snprintf in stb_image_write.h 2026-06-30 15:27:28 +03:00
774620c673 Change math::matrix storage type in preparation for dynamic-sized matrices 2025-10-25 16:12:38 +03:00
b99a4da18f Rename util::array -> util::ndarray 2025-10-25 14:51:30 +03:00
b1ea7bc763 Add gfx::luminance(color) 2025-10-11 00:39:57 +03:00
a7cbe69712 Add math::trs class & use it in gltf animations 2025-07-09 21:02:22 +03:00
132a521b6a Add gfx::painter::circle() with different center & border colors 2025-05-14 22:54:05 +03:00
12eed4dda5 Add HSV <-> RGB conversions 2025-02-23 13:56:33 +03:00
85451a1d6f Add gfx::hue(colorf) 2025-02-23 00:31:13 +03:00
3655fc9c6f Add (bad) support for multiline text in gfx::painter: 2025-02-03 00:43:39 +03:00
f75c04d988 Make gfx::mesh only bind index buffer as GL_ELEMENT_ARRAY_BUFFER, in accordance with WebGL restrictions 2025-01-30 12:40:19 +03:00
4e2aa5f577 Update stb_image.h 2025-01-30 12:39:13 +03:00
2c3565df61 32-bit compilation fixes:
* Use uint64_t instead of size_t as hash return value

 * Expect alignof(uint64_t) <= 8 instead of == 8
2025-01-25 20:35:37 +03:00
c59b28e13f Rename 'geom' library to 'math' 2024-12-10 20:22:59 +03:00
5138e00c35 Move heavy gltf animation code to a cpp file 2024-11-14 21:45:08 +03:00
ce8547c8d3 Preprocess glTF rotation animations to force shortest-arc interpolation 2024-10-15 21:42:00 +03:00
b5d556d06f Fix cubic spline interpolation in glTF animations 2024-10-15 21:40:18 +03:00
2bd4e5790b Support embedded textures in glTF 2024-08-26 23:42:29 +03:00
17a0aef630 Fix uninitialized value warning 2024-08-21 19:18:16 +03:00
c16194c95c Support drawing polygons in gfx::painter 2024-08-20 11:51:12 +03:00
a2c83633ae Support non-const width lines in gfx::painter 2024-08-18 01:12:17 +03:00
6368ca5e68 Support 2D scale in gfx::painter::text 2024-08-17 18:17:32 +03:00
9ce8082e4d Add gfx::blend(color_rgba, color_rgba) 2024-08-08 17:40:27 +03:00
0718282dda Support booleans in glTF extras 2024-08-02 16:56:15 +03:00
aa32b09fca Support matrices in gltf_accessor_iterator 2024-06-08 17:33:14 +03:00
6d13bfa407 Load gltf skin names 2024-06-08 17:32:57 +03:00
b9a6fbf99f Add non-const accessors to gfx::gltf_animation channels 2024-06-08 17:07:41 +03:00
22a57f91db Huge refactor: use util::hash_table instead of std::unordered everywhere 2024-06-03 14:36:39 +03:00
e1201e7913 Fill in iterator traits for gltf accessor iterator 2024-05-28 12:36:40 +03:00
b5117ca8b2 Support quaternions in gltf::accessor_iterator 2024-05-28 12:36:03 +03:00
663f7bc5f4 Support retrieving extra properties & raw mesh from gltf mesh 2024-03-16 17:37:57 +03:00
1cc2c23602 Support glb in gfx::gltf_mesh 2024-03-15 23:26:43 +03:00
a26826fc03 Add ignored warning in stb_image_write 2024-03-14 08:41:47 +03:00
dbcffa8d4a Support gamma-correction in gfx::blur 2024-03-11 21:04:43 +03:00
646ef45acf Disable alpha blending in gfx::blur 2024-03-11 21:04:27 +03:00
1ccf82c2c5 Add comment about gfx::texture_view units 2024-03-04 13:49:11 +03:00
efbcf48d01 Add gltf accessor iterator 2024-01-03 03:25:28 +03:00
c3d964fafd Support loading GLB assets 2024-01-03 02:21:16 +03:00
de9c695a7a Windows compilation fix 2023-12-04 18:14:46 +03:00
30ae586b98 Remove dependency on libpng 2023-12-04 18:01:37 +03:00
1b949c0b7f Remove old NetPBM & PNG code in favour of new stb_* implementations 2023-12-04 18:00:08 +03:00
1c54dd85a5 Support saving images via stb_image_write 2023-12-04 17:43:04 +03:00
6ff3351ab8 Compile stb_image as C++ and use proper assertion handler 2023-12-04 11:38:14 +03:00
dca01b7cc4 Support reading arbitrary image formats via stb_image 2023-12-03 20:32:13 +03:00
de1a454079 Don't request alpha channel when loading monochrome PNG 2023-11-03 11:34:18 +03:00
340a04d17c Fix loading paletted PNG without alpha channel 2023-11-02 13:03:22 +03:00
721c88fbee Change the way discrete GPU forcing works 2023-10-25 16:50:08 +03:00
76c91e50c1 New gcc compilation fixes 2023-10-03 21:32:13 +03:00
27a9c9ee7b Support access bits in gfx::buffer::map 2023-09-17 20:19:36 +03:00
85d7a0ca33 Huge refactor: use util::exception everywhere instead of std exceptions 2023-08-06 18:33:07 +03:00
95e99e4104 Support retrieving specific channels from gltf_animation 2023-08-02 19:18:35 +03:00