Commit graph

1187 commits

Author SHA1 Message Date
09ecce5e6d Add A* pathfinding implementation in util 2022-06-22 00:42:15 +03:00
d112a9cbf8 Add bt::forever 2022-06-21 20:09:44 +03:00
a425cc2f65 Make bt::condition accept a callable instead of being an interface 2022-06-21 20:09:37 +03:00
fbf21cbdec Add more bt nodes 2022-06-21 16:31:47 +03:00
90c0061825 Add new behavior trees library 2022-06-21 10:46:04 +03:00
f0c63bac7a Support loading sRGB textures 2022-06-20 22:11:50 +03:00
05608cc17c Don't allow indexing util::array with wrong number of indices 2022-06-20 17:32:50 +03:00
70f3b68077 Implement util::ecs packed/sparse policy 2022-06-19 22:26:22 +03:00
0cb197a6c4 Fix geom::intersection(segment,box) for axis-aligned segments 2022-06-19 22:25:56 +03:00
0bddeaf865 Add ordered dither mask generation to gfx 2022-06-18 17:35:50 +03:00
302e5e888f Support gfx::texture::mirrored_repeat 2022-06-18 15:18:49 +03:00
598ad99e65 Fix util::array resizing - move elements instead of copying 2022-06-18 15:18:39 +03:00
b77060abac Support retrieving geom::matrix row or column as a vector 2022-06-17 18:51:39 +03:00
6d0a8cec55 Add macro helper for generating structs 2022-06-13 01:01:13 +03:00
d4f299f277 Add basic binary serialization library with tests 2022-06-13 00:17:58 +03:00
9a47155284 Support advancing & retrieving internal pointer in io::memory_stream 2022-06-13 00:17:40 +03:00
9edf94be0c Clang compilation fixes 2022-06-11 13:58:54 +03:00
ef5b8479ea Add io stream read/write_all 2022-06-11 13:55:13 +03:00
142d15fdcb Add io stream end errors 2022-06-11 13:53:13 +03:00
e4f212c44f Make profiler::dump a free function 2022-06-09 11:26:03 +03:00
36123f0a7d Move profiler to a separate library to break io <- util dependence 2022-06-09 11:23:53 +03:00
a2323884af 3D physics engine wip 2022-06-09 11:15:22 +03:00
141c707562 Add geom::subdivide for subdividing an indexed mesh 2022-06-09 11:15:10 +03:00
8e081d6d06 Add geom::smooth_normals 2022-06-09 11:14:47 +03:00
82a81c4c77 Add util::flat_list::begin/end 2022-06-09 11:12:47 +03:00
15f8e04308 Fix util::flat_list::data() 2022-06-09 11:12:37 +03:00
65d95d9b5a Make ui::edit::numeric validators accept max value length 2022-05-30 22:13:28 +03:00
0c3f4c3134 Fix geom::angle(vector, vector) 2022-05-30 12:10:25 +03:00
60150151df Fix ui::label stretch for lines in the middle of text ending in newline 2022-05-29 23:00:44 +03:00
6e289b3b90 Support arbitrary post-draw effect in ui::controller 2022-05-29 19:27:28 +03:00
14d7dda788 Fix ui::scroller size constraints 2022-05-29 11:59:30 +03:00
ccfe940448 Fix positioning ui::label lines 2022-05-29 11:46:23 +03:00
b167e06898 Support user-supplied tag mapper in ui::label 2022-05-28 20:09:17 +03:00
2a2a97f0f8 Refactor ui::tagged_text to use allocated strings instead of string_views 2022-05-28 20:08:57 +03:00
b0fd3562cf Add color hex output 2022-05-28 20:07:21 +03:00
b6fd6630dc Add color (un)premultiplication utils 2022-05-28 18:54:17 +03:00
b9a5861e85 Make ui::find_element_by_id traverse children in reverse order 2022-05-28 15:52:13 +03:00
a567cbbbf5 Support moving ui::screen child to top 2022-05-27 19:59:03 +03:00
203d0504ac Fix text wrapping in ui::label 2022-05-26 23:56:09 +03:00
2574b7aa2b Make ui::screen use new size constrains api 2022-05-26 23:54:15 +03:00
21ae912271 Add ui::find_element_by_id 2022-05-25 22:55:25 +03:00
924533fc7f Add ui::element::id 2022-05-25 22:55:12 +03:00
c8eaf4abe0 Add util::dynamic_ptr with stream output operator that shows dynamic type of referenced object 2022-05-25 22:54:14 +03:00
ebdd90c520 Add ui::painter::draw_triangle with per-vertex colors 2022-05-25 22:53:20 +03:00
fd8bec44ab Compute & log max primitive count in ui painter 2022-05-25 22:52:53 +03:00
c949e0fad9 Discard fragments with alpha=0 in ui painter 2022-05-25 22:51:53 +03:00
78c573b091 Rearrange ui::element field for less padding 2022-05-25 16:16:18 +03:00
b1d9c2c08d Support creating labels with tagged text in ui::element_factory 2022-05-25 13:18:07 +03:00
91fcdfcb29 Fix transparent text shadow rendering 2022-05-24 09:47:30 +03:00
1f0854fff6 Fix ui::edit text rendering 2022-05-23 22:18:32 +03:00