Commit graph

625 commits

Author SHA1 Message Date
ee2f5960f4 Add idiv & imod functions 2021-03-12 14:42:31 +03:00
c835925ca7 Add geom::angle_difference 2021-03-11 21:34:03 +03:00
7b84cb0b1f Support non-modifying chunked_map::at 2021-03-10 14:12:29 +03:00
8284ea51bd Add geom::point hash 2021-03-09 23:06:45 +03:00
8d1be9aebc Add pcg::chunked_map 2021-03-07 21:18:27 +03:00
4ec44bf7a3 Remove pcg::lazy_perlin::operator()(Args...) 2021-03-07 21:18:17 +03:00
8ee99e7dad Add lazy perlin noise generator 2021-03-07 21:07:09 +03:00
36bfcb135e Perlin noise fixes 2021-03-07 21:07:00 +03:00
3482eceea3 Update todo 2021-03-07 19:09:06 +03:00
4fa64be5b0 Add convert-mesh tool to convert blender files to binary resources 2021-03-07 19:07:59 +03:00
3e4cea25e7 Make gfx::load_mesh return data instead of loading mesh directly 2021-03-07 19:05:13 +03:00
6e49551045 Add util::span::data 2021-03-07 19:04:48 +03:00
5255abd66a Implement loading meshes from binary format 2021-03-07 18:31:20 +03:00
697de5c422 Add gfx::mesh::load_raw for loading buffers from raw data 2021-03-07 18:30:00 +03:00
e4f0675a1d Refactor gfx attribs: store vertex & instance size in attrib description 2021-03-07 18:29:25 +03:00
0bed4ae39f Add binary deserialization helper class 2021-03-07 18:28:06 +03:00
e87c4508fc Add random::uniform helper function 2021-03-07 11:54:11 +03:00
9d29e3a656 Fix async::futures: notify cv on value set 2021-03-07 00:13:02 +03:00
9dc95c797c Make gfx::renderbuffer::storage support template pixel types 2021-03-06 18:30:35 +03:00
f40d98cb2f UI rendering fix: visit the tree first, setup OpenGL next 2021-03-06 18:30:15 +03:00
05b50d2826 UI: fix slider state after mouse button up 2021-03-06 12:02:18 +03:00
03acb43dc4 Don't draw or send events to hidden ui children 2021-03-06 10:56:38 +03:00
e6506062b0 UI: send events to children in reverse order 2021-03-06 10:56:22 +03:00
1d0d90862e Support hidden ui elements 2021-03-06 10:55:30 +03:00
27bd390381 UI spinbox implementation 2021-03-05 23:33:19 +03:00
3faccd1256 Default ui element factory supports arrow buttons 2021-03-05 23:13:57 +03:00
fec050307d Add triangle painting to ui::painter 2021-03-05 23:13:27 +03:00
d9fb3b1be6 Add simplex + vector operator 2021-03-05 23:13:11 +03:00
4383ce7e8b Separate ui::button into button & rich_button 2021-03-05 22:57:39 +03:00
c54a9944f1 Add ui::triangle_shape 2021-03-05 22:50:09 +03:00
6ad43ff0a5 Add ui::style::ref_height 2021-03-05 22:34:30 +03:00
66194a1adc Rich image view set_zoom changes zoom instantly 2021-03-05 20:27:06 +03:00
74423000cb Rich image view smooth zoom 2021-03-05 20:09:15 +03:00
2b2b2be560 Support ui animations 2021-03-05 20:09:02 +03:00
bcba2893bf Fix action offset in button children 2021-03-05 15:55:36 +03:00
e67b3f1fdc Add ui slider element 2021-03-05 15:51:17 +03:00
0bf4324ba4 Refactor button creation + create image view via element factory 2021-03-05 14:27:20 +03:00
0f9b8f72c1 Make ui::button::set_icon/set_label public 2021-03-05 14:26:45 +03:00
984cae76ae Add todo to sources only if root project 2021-03-05 12:48:23 +03:00
49b58f76c5 UI: rich_image_view use loop instead of calling reshape & region_changed directly 2021-03-05 12:29:31 +03:00
3c4e1f99df Logging: automatically increase max thread name length + properly log thread name if thread unregisters itself 2021-03-05 11:21:05 +03:00
725a7a6ea2 Fix rich_image_view rmb up 2021-03-04 20:35:31 +03:00
104ecb528a Fix task cancelling 2021-03-04 20:30:12 +03:00
8091183375 Fix future::then 2021-03-04 20:30:02 +03:00
08d71a8496 Add async::make_ready_future 2021-03-04 19:45:30 +03:00
4914be8099 Proper sfinae for vector & point constructors instead of static_assert 2021-03-04 18:37:07 +03:00
1bfbaaa840 Support async::future::then 2021-03-04 18:33:58 +03:00
dd32ab00d3 Huge async rewrite: std-like future, promise & packaged task 2021-03-04 18:33:40 +03:00
c26cf898ca Bugfix in util::function: forward the callable instead of moving it 2021-03-04 14:31:15 +03:00
4641c5d7d2 UI element::post uses movable function 2021-03-04 14:30:46 +03:00