Commit graph

1215 commits

Author SHA1 Message Date
b2a714f88a Add monotone chain simple polygon triangulation 2022-09-15 14:42:13 +03:00
2e44978ff3 Add ear clipping simple polygon triangulation 2022-09-15 14:42:05 +03:00
208a6f0e8b Add PSEMEK_EXAMPLES_DIR variable for examples 2022-09-15 14:41:51 +03:00
a6661b8e98 Only treat cpp files as examples 2022-09-15 14:41:38 +03:00
0557737d39 Fix cg::bbox 2022-09-15 14:41:11 +03:00
9e0690faf4 Fix ecs tests 2022-09-09 12:41:55 +03:00
1aa5156002 Make ecs::entity_species a static member 2022-08-19 09:50:10 +03:00
876cbd7362 Support ecs behavior::begin called when starting iteration over a species 2022-08-19 09:49:41 +03:00
34ee3f0a6e Support ecs behavior forbidden components that prevent applying it to a certain species 2022-08-19 09:49:14 +03:00
ce287c0416 Support loading data from util::span to gfx::buffer 2022-08-19 09:48:21 +03:00
4fae4bbbe4 Add event-based behavior & processor registration in ECS 2022-08-16 14:36:35 +03:00
2482a8c224 Support adding arbitrary arguments to ECS behavior call 2022-08-16 10:14:21 +03:00
f22b45c5e8 ECS handles refactor: handle includes species & version 2022-08-15 19:40:50 +03:00
b05e209c6d Set stdio log level to info in deploy mode 2022-08-14 23:17:53 +03:00
15bfb378aa Add -DPSEMEK_PACKAGE_MODE in package mode 2022-08-14 23:15:39 +03:00
005ae42d53 Support selecting log level for profiler 2022-08-14 23:15:21 +03:00
d1960312e6 Add log::log(level) 2022-08-14 23:15:00 +03:00
5f3b07573e Support retrieving available GPU memory size 2022-08-14 22:59:14 +03:00
19d8637f7a Update gl.cpp 2022-08-14 22:40:20 +03:00
8d6cf511aa Export variables that force use of dedicated discrete GPUs 2022-08-14 22:20:24 +03:00
f7d612e9f4 Support stripping extension in psemek_glob_resources 2022-08-10 16:03:24 +03:00
8a7c9ea263 Add util::object_pool 2022-08-10 11:45:48 +03:00
f39cc15bd8 Add util::spatial_array::size,min,max 2022-08-10 11:45:40 +03:00
b3304e7785 Fix uninitialized values in util::spatial_array 2022-08-08 11:19:38 +03:00
512ec6df93 Remove '#' from threadpool thread names 2022-08-07 11:41:37 +03:00
f3253b1e4a Remove support for log::register_thread(id, name); register thread name for pthread if possible 2022-08-07 11:41:23 +03:00
b8aeb66d07 Small profiler refactoring 2022-08-07 11:20:47 +03:00
c7923f356e Fix profiler result merging 2022-08-07 11:20:32 +03:00
e0a185d349 Fix util::spatial_array::end 2022-08-07 11:20:04 +03:00
6108fc591b Re-build packaging images with reproducible Dockerfiles 2022-08-06 19:36:05 +03:00
742c74e07e Revert defaulted three-way comparison: ubuntu 22.04 doesn't have mingw-11 yet 2022-08-06 19:15:39 +03:00
0a3df26873 Show relative time percentage in profiler output 2022-08-05 17:34:25 +03:00
5afd76e214 Add util::spatial_array::begin/end 2022-08-05 16:12:22 +03:00
8f6bd5b5fc Add util::spatial_array asserts in case of wrong number of indices 2022-08-05 16:12:13 +03:00
2421dee3b7 Default-initialize elements in util::spatial_array 2022-08-05 16:11:45 +03:00
649c051b61 Add auto-expanding in all directions util::spatial_array 2022-08-05 15:54:58 +03:00
dc1b86fa75 Show fraction of calls compared to parent in profiler dump 2022-08-05 13:36:28 +03:00
c28b93aadc Use defaulted three-way comparison for geom::vector, point, and matrix 2022-08-05 12:02:41 +03:00
48801a69da Add geom::smoothstep & smootherstep 2022-08-04 11:43:07 +03:00
3ca9c8b16e Add buffer textures 2022-07-29 18:58:41 +03:00
ec6bd1d60b Don't throw on invalid uniform block index 2022-07-28 13:51:45 +03:00
a29cbf793e Fix removing packed entities 2022-07-26 14:31:43 +03:00
96d9a3e192 Add geom::intersection(segment,cylinder) 2022-07-10 11:13:37 +03:00
bdb1a203ff Add geom::cylinder deduction guides 2022-07-10 11:13:26 +03:00
3b509fb358 Fix geom::shortest_arc in case of 180 degree rotation 2022-07-09 11:53:39 +03:00
d157ba1cd5 Add geom::sphere deduction guide 2022-07-09 00:00:01 +03:00
11962abf8f Add random::weighted_distribution default constructor 2022-07-07 15:09:20 +03:00
11c431f38c Add geom::shortest_arc to compute smallest rotation between two 3D vectors 2022-07-05 18:32:33 +03:00
d405d3d502 Fix geom::angle(vector,vector) for dimension > 2 2022-07-05 18:32:12 +03:00
eb1e367085 Implement spaceship operator for geom::vector 2022-07-04 18:22:42 +03:00