Commit graph

364 commits

Author SHA1 Message Date
156a58a59a Fix gltf parser in case a material doesn't have 'pbrMetallicRoughness' field 2026-08-16 17:03:01 +03:00
0fecd6375b Add util/string.hpp 2026-08-13 18:02:55 +03:00
68650da6f5 Support margins & offsets in monospace_font, and add a new default 5x7 font
All checks were successful
Run tests / Run tests (push) Successful in 7m26s
2026-07-24 15:52:04 +03:00
c5b245eef8 Add sampler2DShadow to gles shader prefix 2026-07-24 02:33:26 +03:00
a38527a322 Remove useless line in stroking shader in gfx::painter2
All checks were successful
Run tests / Run tests (push) Successful in 7m2s
2026-07-21 20:37:22 +03:00
2f7774b83f SDF-based + arbitrary affine transformations vector graphics experiments (gfx::painter2)
All checks were successful
Run tests / Run tests (push) Successful in 7m1s
2026-07-21 18:08:56 +03:00
1338aa05ed Introduce gfx::shader_source to simplify creating shaders from concatenated sources 2026-07-21 13:28:31 +03:00
dd07244a40 Update auto-generated opengl loaders & use shader prelude in gfx effects 2026-07-05 13:36:59 +03:00
4d7926b698 Final Emscripten OpenGL fixes 2026-07-03 22:29:58 +03:00
2e94515c05 Disable parts of gfx library on web 2026-07-03 20:24:56 +02:00
bd70f197ab Use gles30-emscripten for web builds instead of gles32 2026-07-03 20:11:28 +02:00
0b3fdd26c5 Add necessary GLES fixes and missing JS functions 2026-07-03 14:28:26 +02:00
923cb61012 Merge remote-tracking branch 'lisyarus-dev/master' into web 2026-07-02 21:58:28 +02:00
e3030416ce Replace sprintf with snprintf in stb_image_write.h 2026-06-30 15:27:28 +03:00
f562a82fb5 Merge remote-tracking branch 'remotes/origin/master' into web 2026-06-28 20:01:37 +02: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
4204022390 Support basic build with Emscripten
The result doesn't necessarily work yet, but at least the build is not failing.
2025-02-03 12:52:18 +01: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