Commit graph

1993 commits

Author SHA1 Message Date
ef85eec178 Use wide strings for io::file_stream on Windows 2025-03-04 18:12:21 +03:00
dab7b6327e Fix wgpu packaging for windows 2025-02-26 22:13:14 +03:00
195a31fa1c Add text input events in SDL2 backend 2025-02-24 13:02:48 +03:00
12eed4dda5 Add HSV <-> RGB conversions 2025-02-23 13:56:33 +03:00
4f4e86ce4f Add math::inverse_smoothstep 2025-02-23 13:56:13 +03:00
4c16594b3f Use pi casted to appropriate type instead of implicit conversion to double in math/math.hpp 2025-02-23 11:46:43 +03:00
85451a1d6f Add gfx::hue(colorf) 2025-02-23 00:31:13 +03:00
72694664de Add util::moving_average::max_count() 2025-02-21 22:26:24 +03:00
28a4d9ccb0 Make cg::kdtree::closest const & add cg::kdtree::clear & assign 2025-02-21 19:20:54 +03:00
97c9d79a5a Add default values to wgpu-related fields in application::options 2025-02-16 18:43:30 +03:00
3655fc9c6f Add (bad) support for multiline text in gfx::painter: 2025-02-03 00:43:39 +03:00
cd31187d3f Add missing include 2025-02-02 21:28:59 +03:00
a6268663da More 2d shallow water tests 2025-01-30 13:07:30 +03:00
fa9c5efaf0 Add 2D hex water example 2025-01-30 12:40:32 +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
64d85dd1c0 Don't require OpenMP in sort creatures 2d example 2025-01-30 12:39:04 +03:00
d4e3cc623a Replace deprecated std::atomic_load with std::atomic<shared_ptr> in audio::channel 2025-01-30 12:38:44 +03:00
cca966b33e Fix missing include 2025-01-30 12:38:10 +03:00
b01c594cba Add math::fmod that works for negative inputs 2025-01-30 12:37:48 +03:00
adcf761243 Support dynamic size in math::vector 2025-01-26 19:03:33 +03:00
6fc476f1f0 Support building without Boost.Stacktrace 2025-01-26 14:45:43 +03:00
4890761b0a More generous iteration count for 3-layer XOR nn test 2025-01-25 21:14:53 +03:00
5587c43611 ECS library 32-bit fixes 2025-01-25 21:14:32 +03:00
5155175d9b Flush test name to stdout when starting to run a test 2025-01-25 20:35:57 +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
7c15c1bb0d Add water 2d example 2025-01-25 16:01:49 +03:00
3940766f7d Compilation fixes related to ui_legacy lib 2025-01-21 14:10:35 +03:00
b967af7ddd Add back default fonts 2025-01-21 14:10:35 +03:00
a49be3b253 Fix util::hash_map with std::pair as keys 2025-01-21 14:10:30 +03:00
8a21e53ee1 Rename old ui library to ui_legacy 2025-01-21 12:14:38 +03:00
20f3bef6bd Add random::poisson distribution 2025-01-12 20:05:47 +03:00
073ac16223 Add a basic k-d tree implementation 2025-01-09 18:22:28 +03:00
c59b28e13f Rename 'geom' library to 'math' 2024-12-10 20:22:59 +03:00
89cbbaeeef Fix bt::conditional node: proper assert handling & child nodes starting 2024-12-07 20:05:16 +03:00
6d4abb7c03 Add bt::conditional node 2024-12-05 23:04:50 +03:00
e7482bb165 Fix max_anisotropy naming in wgpu 2024-12-03 22:29:06 +03:00
bfa0491f39 Support retrieving ECS table statistics 2024-11-29 01:15:35 +03:00
95b6651fc3 Support pushing > 1 measurement at a time in profiler 2024-11-29 00:44:45 +03:00
9b3f2df2a0 Rely on float->int conversion instead of std::floor in audio resampler hot loop 2024-11-29 00:07:02 +03:00
80b4cc938d Fix constructors & destructors order
Order of callbacks was affected by the order of caches, which are pretty
much arbitrary. For a fix, explicitly order the callbacks globally
per-world.
2024-11-28 18:55:17 +03:00
fad1580379 Fix GCC false positive -Warray-bounds in geom::swizzle when using ubsan 2024-11-19 19:09:01 +03:00
ad752f0ea1 Separate ordered & unordered component hashes in ecs 2024-11-18 16:55:39 +03:00
3359aaa62d Simplify ecs::query_cache_container: store caches directly instead of storing nodes with uuid duplicates 2024-11-18 16:42:23 +03:00
daa2b9c49a Add bt_log macro for logging AI actions 2024-11-18 16:38:21 +03:00
6971b8545a Add util::null_ostream 2024-11-18 16:36:02 +03:00
5138e00c35 Move heavy gltf animation code to a cpp file 2024-11-14 21:45:08 +03:00
fbb032fe63 Support native limits in wgpu device creation 2024-11-14 13:48:40 +03:00
f986f0d4b1 Add defaults to wgpu::limits 2024-11-14 13:47:56 +03:00
e6ae945b92 Fix creating chained structs in wgpu 2024-11-14 13:47:13 +03:00