|
560fc9e11f
|
Remove everything that might depend on cgo
|
2025-04-10 14:05:55 +02:00 |
|
Thomas Friedel
|
364c8706b6
|
rgba() color parsing now uses a float in range 0.0-1.0 for the alpha component
|
2020-12-01 16:17:29 +01:00 |
|
Thomas Friedel
|
0c528ecc87
|
updated dependencies
|
2020-08-12 15:26:19 +02:00 |
|
Thomas Friedel
|
631290f5f2
|
regenerated xmobile backend
|
2020-06-02 11:06:57 +02:00 |
|
Thomas Friedel
|
6586c5c7d1
|
fixed a bug on macos, nothing got rendered with disabled vertex attrib arrays
|
2020-06-02 11:06:21 +02:00 |
|
Thomas Friedel
|
5eb5dc34e1
|
switch to vector text rendering in more cases
fixed text rendering test case
|
2020-05-28 11:12:55 +02:00 |
|
Thomas Friedel
|
f36e11bdff
|
directly replace image when calling Replace if it is an image
|
2020-05-10 17:48:18 +02:00 |
|
Thomas Friedel
|
3a0ca2cdcd
|
bugfix in ClosePath
|
2020-05-09 10:18:56 +02:00 |
|
Thomas Friedel
|
e37f4f5565
|
added sorting of font contours for correct triangulation
|
2020-04-04 18:34:53 +02:00 |
|
Thomas Friedel
|
c4d3130770
|
converted earcut.hpp library to Go and used it to triangulate fonts
|
2020-03-28 16:08:58 +01:00 |
|
Thomas Friedel
|
1d5a02b1d6
|
bugfix in rune path
|
2020-03-28 12:08:33 +01:00 |
|
Thomas Friedel
|
1711693a57
|
fixed text stroke scaling
|
2020-03-27 21:39:19 +01:00 |
|
Thomas Friedel
|
ef4c2c3191
|
fixed font scaling bug
|
2020-03-27 19:37:49 +01:00 |
|
Thomas Friedel
|
a0a1cea270
|
faster font contour path
|
2020-03-24 14:25:51 +01:00 |
|
Thomas Friedel
|
c36395c0c8
|
fixed stroke text rendering
|
2020-03-24 11:49:10 +01:00 |
|
Thomas Friedel
|
30531aaab7
|
new way to fill text (work in progress)
|
2020-03-23 12:42:04 +01:00 |
|
Thomas Friedel
|
39e9e6400b
|
round coordinates when filling with image mask to improve text rendering
|
2020-03-23 11:26:48 +01:00 |
|
Thomas Friedel
|
34087abece
|
Path2D now caches the triangulation for filling
|
2020-03-22 11:52:35 +01:00 |
|
Thomas Friedel
|
804a9c2774
|
replaced [2]float64 with Vec type
|
2020-03-22 10:15:42 +01:00 |
|
Thomas Friedel
|
cc9247c627
|
moved math code to backendbase package so that backends can also use it
|
2020-03-22 10:07:18 +01:00 |
|
Thomas Friedel
|
066f4f55bb
|
kerning in StrokeText
|
2020-03-22 09:50:32 +01:00 |
|
Thomas Friedel
|
d3cc20f911
|
much improved text scaling
|
2020-03-21 18:55:25 +01:00 |
|
Thomas Friedel
|
978852494a
|
removed dead code
enabled font hinting
|
2020-03-21 16:49:32 +01:00 |
|
Thomas Friedel
|
59ddfe59c1
|
more efficient alpha texture loading
|
2020-03-21 16:35:22 +01:00 |
|
Thomas Friedel
|
7830bb2cc5
|
removed the alpha tex clear
|
2020-03-21 16:19:35 +01:00 |
|
Thomas Friedel
|
1b94cf0703
|
added comments
|
2020-03-21 15:51:19 +01:00 |
|
Thomas Friedel
|
b39fdd0a48
|
added panic when an image is loaded with a different canvas
|
2020-03-21 13:20:54 +01:00 |
|
Thomas Friedel
|
f47d24543d
|
removed explicit deleting of gradients
removed finalizers from backends, instead using a finalizer as an emergency catch on the frontend
|
2020-03-21 13:05:04 +01:00 |
|
Thomas Friedel
|
7faf3cdcc6
|
improved caching and added font context cache
|
2020-03-21 12:50:44 +01:00 |
|
Thomas Friedel
|
9d1e5b306a
|
improved cache code
|
2020-03-21 11:36:27 +01:00 |
|
Thomas Friedel
|
896af05ba4
|
updated xmobile backend
|
2020-03-17 15:22:56 +01:00 |
|
Thomas Friedel
|
a0ba7b2ad3
|
removed some unused variables
|
2020-03-17 12:54:33 +01:00 |
|
Thomas Friedel
|
d670f964c8
|
self intersecting polygon bugfix
|
2020-03-17 10:21:09 +01:00 |
|
Thomas Friedel
|
421d388f91
|
faster text rendering
|
2020-03-16 18:29:05 +01:00 |
|
Thomas Friedel
|
84d2b4f3cb
|
code cleanup
|
2020-03-16 18:28:37 +01:00 |
|
Thomas Friedel
|
3378745af4
|
fixed method order
|
2020-02-28 08:54:33 +01:00 |
|
Thomas Friedel
|
ffd40c721e
|
float colors always in range 0.0-1.0 for consistency
|
2020-02-28 08:53:59 +01:00 |
|
Thomas Friedel
|
82290ace4a
|
removed some dead code; small code improvements
|
2020-02-20 12:15:15 +01:00 |
|
Thomas Friedel
|
239026dd49
|
fixed that gradients weren't reloaded after being changed
|
2020-02-18 17:05:56 +01:00 |
|
Thomas Friedel
|
e3098ff636
|
images are likely rgba
|
2020-02-14 16:36:06 +01:00 |
|
Thomas Friedel
|
3e6e46ca0d
|
reverted a previous change as it was not correct
|
2020-02-14 16:34:38 +01:00 |
|
Thomas Friedel
|
55572c59da
|
added performance setting for image cache size
|
2020-02-14 16:30:40 +01:00 |
|
Thomas Friedel
|
637509b5d4
|
minor fixes
|
2020-02-14 16:28:24 +01:00 |
|
Thomas Friedel
|
7f7efd5a8a
|
the image cache is now limited to 16mb
|
2020-02-14 16:28:12 +01:00 |
|
Thomas Friedel
|
0d915f7178
|
fixed and improved shadows
|
2020-02-12 17:38:33 +01:00 |
|
Thomas Friedel
|
7213b3edcd
|
much better shadow performance
|
2020-02-12 15:53:46 +01:00 |
|
Thomas Friedel
|
8b79ad18fa
|
fully unified into one shader
updated shadow test
|
2020-02-11 15:59:28 +01:00 |
|
Thomas Friedel
|
f5e7e6a060
|
replaced the gaussian shadow shaders with box blur shaders
|
2020-02-11 15:45:48 +01:00 |
|
Thomas Friedel
|
598ac1e325
|
simplified the drawBlurred function
|
2020-02-11 15:20:29 +01:00 |
|
Thomas Friedel
|
b0230892ab
|
added image shader into unified shader
|
2020-02-11 14:51:24 +01:00 |
|