Commit graph

616 commits

Author SHA1 Message Date
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
9cba2d1c16 Add thread unregistering in log 2021-03-04 14:29:39 +03:00
2f56f0caa2 Add hash for geom::vector 2021-03-04 14:29:09 +03:00
ea46e820ab UI elements should explicitly reset parent for their children 2021-03-04 13:58:15 +03:00
ef34071748 Reimplement async::future without std::future 2021-03-04 11:02:11 +03:00
fccf2e382e Add scrollable & zoomable image view element 2021-03-04 10:03:04 +03:00
486a8b24aa UI painter: add draw_subimage & don't restrict to integer texcoords 2021-03-04 10:02:46 +03:00
576bc8b91a Add geom::unlerp 2021-03-04 10:01:56 +03:00
32461e205e Add geom::clamp(point, box) 2021-03-04 10:01:49 +03:00
e266bb476e Fix unused function warning for release build 2021-03-03 19:46:24 +03:00