Commit graph

1228 commits

Author SHA1 Message Date
ef3359add1 Fix convert-mesh script 2022-10-01 13:52:56 +03:00
968d79df7b Fix on_scene_exit called multiple times 2022-09-20 15:44:41 +03:00
7a57c1c1d8 Re-implement monotone chain triangulation to output a DCEL 2022-09-19 23:35:33 +03:00
92ad22f656 Add cg::fill_missing_faces that creates faces for edge loops without a connected face 2022-09-19 23:35:03 +03:00
51e6f8ad9c Rewrite ear-clipping triangulation to output dcel 2022-09-17 00:40:00 +03:00
34d9e67960 Store previous edge in dcel edges to support non-triangle meshes 2022-09-17 00:37:55 +03:00
83f1ac4202 Make cg::triangulation & cg::delaunay return dcel with nothing but connectivity data and using the input vertex order 2022-09-16 19:40:27 +03:00
0fe4477097 Add cg::edge_mesh(dcel) and cg::triangle_mesh(dcel) 2022-09-16 19:39:42 +03:00
b7e070a3a6 Implement const dcel handles 2022-09-16 19:22:24 +03:00
4c976272c5 Switch from define-based to tag-based robust predicates switch 2022-09-16 18:57:53 +03:00
46458abd71 Improve the non-robust geom::in_circle predicate and generalize to any directions 2022-09-16 17:56:11 +03:00
30546a505e Fix triangulation static assert on dimension 2022-09-16 17:34:58 +03:00
ecb723af1a Add polygon triangulation example 2022-09-15 14:42:24 +03:00
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