Commit graph

30 commits

Author SHA1 Message Date
Emil Ernerfeldt
ce0e7f4e09 Refactor font layout: introduce y_max for each Line in a Galley 2020-05-16 20:05:52 +02:00
Emil Ernerfeldt
89aa285255 Simplify text layout further with even less allocations 2020-05-16 18:17:35 +02:00
Emil Ernerfeldt
82ac4086fc Improve debug painting of clip rects 2020-05-11 18:14:02 +02:00
Emil Ernerfeldt
3860807e29 Use premultiplied alpha for all colors + improve painting of thin lines 2020-05-11 17:57:11 +02:00
Emil Ernerfeldt
4fcea59929 Optimize meshing 2020-05-11 17:08:04 +02:00
Emil Ernerfeldt
4ba69e3a11 Handle painting of rectangles that start at negative infinity 2020-05-10 19:04:29 +02:00
Emil Ernerfeldt
cc70905336 Support painting infinitely sized rectangles 2020-05-10 13:06:43 +02:00
Emil Ernerfeldt
9f6e9c94d6 Merge struct Emigui into Context 2020-05-08 22:25:28 +02:00
Emil Ernerfeldt
87e3aacf35 enforce and fix a bunch of clippy issues 2020-05-07 10:47:03 +02:00
Emil Ernerfeldt
6aadf4128e Refactor: pass Rect:s by value (cleaner) 2020-05-05 19:12:00 +02:00
Emil Ernerfeldt
cce048509f Refactor: make Rect members min/max public 2020-04-25 15:45:38 +02:00
Emil Ernerfeldt
4cc6ca7236 Use ..= range arguments to remap functions 2020-04-25 11:11:44 +02:00
Emil Ernerfeldt
a66f4efaac Minor code cleanup and clippy fixes 2020-04-24 18:47:14 +02:00
Emil Ernerfeldt
39e17a7562 Add painter region as example 2020-04-24 18:32:27 +02:00
Emil Ernerfeldt
609473f85a Add option to debug paint clip rects 2020-04-21 10:33:33 +02:00
Emil Ernerfeldt
2f02446f6f WIP: clip_rect 2020-04-20 23:48:55 +02:00
Emil Ernerfeldt
388132ba93 Implement window resizing 2020-04-19 23:44:24 +02:00
Emil Ernerfeldt
2170081221 Use new type Pos2 for positions (points) instead of Vec2 2020-04-19 01:05:49 +02:00
Emil Ernerfeldt
6eb1053c35 Start refactor mesher module into a more reusable Path concept 2020-04-19 00:27:25 +02:00
Emil Ernerfeldt
1d3836ba80 Add rudimentary support for gui windows that you can move around 2020-04-17 14:26:36 +02:00
Emil Ernerfeldt
49cbd3fe07 Fix: properly sample white color (was off by half a texel) 2020-04-16 23:10:05 +02:00
Emil Ernerfeldt
0265b3d43a Refactor: define rect by min/max 2020-04-15 17:41:35 +02:00
Emil Ernerfeldt
1d6bc3baba Minor API improvements 2019-04-25 18:07:36 +02:00
Emil Ernerfeldt
0be9722af5 Handle more than 2^16 vertices in WebGL renderer 2019-03-12 14:43:50 +01:00
Emil Ernerfeldt
c15768dbf4 Refactor: rename Frame to Mesh 2019-03-10 21:00:28 +01:00
Emil Ernerfeldt
f2040c6fc5 Fix antialiasing for non-retina screens 2019-02-24 17:18:30 +01:00
Emil Ernerfeldt
f0c879b2f4 Code cleanup: allow None mouse_pos + clippy fixes 2019-02-10 15:30:48 +01:00
Emil Ernerfeldt
c2c94ddda5 Pixel-perfect fonts 2019-01-19 10:10:28 -06:00
Emil Ernerfeldt
88fdd127ea Allow resizing fonts at runtime 2019-01-17 11:03:39 -06:00
Emil Ernerfeldt
7f83876005 Enable colored text (and other misc fixes) 2019-01-16 09:28:43 -06:00
Renamed from emigui/src/painter.rs (Browse further)