Commit graph

791 commits

Author SHA1 Message Date
6207df1e9b Make enum_iterator bidirectional 2022-02-19 23:03:55 +03:00
466aa717ad Log max batch count in ui painter 2022-02-19 19:40:19 +03:00
742ae9e21e Fix propagating reshape_posted flag 2022-02-19 19:23:20 +03:00
aca553c566 Propagate reshape_posted to and from parents 2022-02-19 16:39:43 +03:00
2004f8043a Don't post ui reshape if one if already posted 2022-02-19 16:36:17 +03:00
4281093b9d Add ui::key_interceptor 2022-02-19 13:00:39 +03:00
ecf69a85e6 Add ui::null_shape 2022-02-19 13:00:31 +03:00
a3aca66705 Make scene manager store shared pointers to scene to simplify removing scenes 2022-02-19 12:36:15 +03:00
b4c19a2ca7 Make image_view respect style scale 2022-02-18 11:51:37 +03:00
5a64593219 Introduce ui::toggle_button - a button that can be turned on/off 2022-02-17 18:55:00 +03:00
eb78e2cdb7 Make image_view use texture_view instead of owning a texture 2022-02-17 18:54:14 +03:00
39cbb8b60d Fix gfx::texture_view::size 2022-02-17 18:52:31 +03:00
7a3dbf685a Log startup time 2022-02-17 16:38:11 +03:00
fb2acde48f Change initial window size to 1024x768 & log window resize events 2022-02-17 16:37:30 +03:00
9e24c875a1 Support drawing rotating images in ui::painter 2022-02-17 10:17:55 +03:00
59a0b4ef13 Fix kerned_font handling spaces 2022-02-16 11:33:14 +03:00
a52ea77e69 Support stretching spaces in ui::label 2022-02-15 17:12:46 +03:00
0be73e2816 Replace ui:🏷️:multiline_mode with boolean ui:🏷️:wrap 2022-02-15 16:55:18 +03:00
34e2877873 Add new non-monospace font 2022-02-15 16:24:42 +03:00
68e8ece70a Add outlines for default font glyphs for better inspection 2022-02-15 16:24:32 +03:00
615fc029e7 Add ui::style::scale 2022-02-15 11:23:14 +03:00
ed92e28a8b Fix unknown_enum_value_exception 2022-02-12 13:33:02 +03:00
d2a20d7882 Add safe round-up integer division 2022-02-11 14:26:15 +03:00
45b3369bc9 Add texture atlas implementation 2022-02-10 13:29:47 +03:00
93fd269c02 Support rendering texture_view's in ui::painter 2022-02-10 13:29:37 +03:00
d01008114b Add gfx::texture_view specifying a part of existing texture 2022-02-10 13:29:17 +03:00
20302885b5 Add enum_range::size 2022-02-09 23:12:55 +03:00
02382155a7 Add random::uniform_from(container) 2022-02-09 19:34:37 +03:00
ef80db2620 Add hash for std::pair 2022-02-08 20:34:53 +03:00
fa581d0ed3 Make ui::grid_layout::get return shared_ptr 2022-02-07 21:13:41 +03:00
754566ec15 Add stream output operator for enums 2022-02-07 13:39:53 +03:00
66deca8cda Fix ui::checkbox::set_value 2022-02-07 13:39:40 +03:00
093308a116 Fix ui painter colored texture rendering 2022-02-06 14:47:43 +03:00
681bc5cc25 Fix ui frame_impl size constraints 2022-02-05 20:44:17 +03:00
5779680e1d Fix ui::slider behavior if reshape occurs while user is changing value 2022-02-05 12:43:21 +03:00
323c5a714f Support setting max events per frame in ui_scene derived classes 2022-02-05 12:42:45 +03:00
29bdfb4dd2 Add geom::box comparison operators 2022-02-05 12:38:51 +03:00
d577282fce Make ui controller root_proxy post on_reshape instead of calling it directly 2022-02-05 12:38:35 +03:00
d653cb1b8b Restrict max events per frame in UI event loop 2022-02-05 12:38:06 +03:00
11614b3c1b Support max event count in async::event_loop::pump 2022-02-05 12:37:22 +03:00
834d9408ff Add psemek_declare_enum macro for common enum utilities 2022-02-04 18:01:07 +03:00
a01bd019f8 Support delaying posted callbacks until a ui element gets attached to an event loop 2022-02-02 22:05:40 +03:00
e4bd58c5ef Support not skipping extra spaces in ui::label 2022-02-02 19:45:32 +03:00
460632a118 Fix util::timer: add timer duration to tracked time point instead of replacing it with now() 2022-02-02 19:45:27 +03:00
d369abc61b Support retrieving nn gradient wrt inputs in backpropagation & add tests 2022-01-23 19:37:42 +03:00
7040faecd4 Add identity activation function to ml 2022-01-23 19:36:38 +03:00
3dbbcadfe3 Add generic backpropagation (supporting any loss function, not only l2) 2022-01-21 18:42:48 +03:00
8630525dcf Add ml::neural_net_learner implementation with backpropagation, gradient descent, and tests 2022-01-21 12:12:38 +03:00
def0615baa Add ml::activation_type::count 2022-01-21 12:12:08 +03:00
d410c970e6 Add an utility function to compute l2 loss in ml 2022-01-21 12:11:38 +03:00