Commit graph

504 commits

Author SHA1 Message Date
2b1417160c Clear depth buffer in ui example 2021-02-25 14:17:51 +03:00
b9dd6c78a3 Implement glyph rendering in painter 2021-02-25 14:17:24 +03:00
867deddd87 Use channel swizzling for default 9x12 font 2021-02-25 14:16:37 +03:00
a5ddc2eb7c Fix default 9x12 font texcoords 2021-02-25 14:16:19 +03:00
69bd546848 Label implementation wip 2021-02-25 11:42:47 +03:00
f106299dd9 UI box shape is all zeroes by default 2021-02-25 11:24:28 +03:00
4deb6fa64a Default button created with text 2021-02-25 11:23:57 +03:00
38123ace0e Add more styles & support border and shadow in default button 2021-02-25 11:13:32 +03:00
72ae8604cb Fix depth conversion in ui::painter_impl 2021-02-25 11:13:17 +03:00
b7014f2eda Add style description & use it in default element factory 2021-02-25 10:36:50 +03:00
937a011577 Don't store font in painter or controller, use it in factory instead 2021-02-25 09:50:30 +03:00
3cf308e7fe Update todo 2021-02-25 09:41:18 +03:00
a53b32067f UI library prototype wip 2021-02-25 09:07:39 +03:00
d695c29cc7 Add util::span 2021-02-25 09:07:28 +03:00
e939d59a79 Export default 9x12 monospace font as public gfx resource 2021-02-25 09:07:15 +03:00
4f88ce3101 Support public resources in libraries 2021-02-25 09:07:00 +03:00
7520901f30 Add utf8 iterator & range 2021-02-23 20:13:33 +03:00
95cc39421d Fix physics_2d example 2021-02-23 20:09:14 +03:00
cec776df8a Move async::executor::clock to async::clock 2021-02-20 22:09:48 +03:00
fdd57ba572 Mark audio stream as not playing when it ends 2021-02-20 21:55:24 +03:00
684cfe92b9 Only create random::generator from random::device 2021-02-19 13:23:59 +03:00
0c45409dfe App bugfix: event handler can change while handling events 2021-02-19 10:43:07 +03:00
db2fb3095d Add segment-box intersection 2021-02-17 23:11:42 +03:00
dbeb613740 Make util::empty stream output operator inline 2021-02-17 23:11:25 +03:00
f8d127d700 Support blending textures with a color in painter 2021-02-17 14:55:17 +03:00
74ba55257f Textures bugfix: copy & reset size on move 2021-02-17 14:43:07 +03:00
c714d6b73a Store width & height in scene_base 2021-02-17 12:43:44 +03:00
1b9e769b3f Support quaternion uniforms 2021-02-15 22:38:30 +03:00
b6aa09bffe Rename random::random_device -> random::device 2021-02-15 12:24:43 +03:00
e2bcab4f89 Fix shader source line numbering 2021-01-30 19:19:35 +03:00
e8c0d9492b Show source lines when reporting shader compilation errors 2021-01-29 10:34:40 +03:00
fe873209c6 Support buffer loading from std::array and C array 2021-01-28 20:17:57 +03:00
67918449bc Add ray stream output operator 2021-01-27 16:17:16 +03:00
7155aa49e8 Add interval equality comparison operators 2021-01-27 16:17:05 +03:00
2a04f0d421 Add generic swizzling function 2021-01-25 22:16:24 +03:00
b2012aaa77 Add quaternion slerp 2021-01-25 22:14:54 +03:00
df85b5eac5 Make quaternion constructor accept a vector instead of coordinates 2021-01-25 22:12:05 +03:00
e871517909 Add quaternions & quaternion-based rotations 2021-01-25 00:59:13 +03:00
2d7d38bc6d Add affine_transform::identity 2021-01-25 00:51:06 +03:00
2722dd291b Fix matrix::scalar 2021-01-25 00:50:47 +03:00
891c3a0fbd Add 3D quickhull implementation (ported from older geom) 2021-01-23 21:34:21 +03:00
18fa286896 Add simplex comparison operators 2021-01-23 21:33:59 +03:00
7ac4e3eb9b Fix normal_distribution bug 2021-01-23 21:33:45 +03:00
5e7aa7601d Pimpl declaration macros now define a make_pimpl(...) static helper function 2021-01-23 10:42:14 +03:00
a8aef622a1 Fix bug in deferred renderer 2021-01-18 20:09:19 +03:00
b73ceb35d2 Build examples by default 2021-01-18 20:04:57 +03:00
c37fc1f614 Fix shader version in deferred renderer 2021-01-18 20:03:51 +03:00
b6cb3576a5 Show full shader source on compilation failure 2021-01-18 20:03:24 +03:00
07924aa0d5 Various clang compilation issues 2021-01-18 20:02:35 +03:00
e9dbc71f87 Remove Eigen dependence 2021-01-18 20:01:46 +03:00