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 |
|
Thomas Friedel
|
50bf39fe62
|
unified some of the shaders to simplify
|
2020-02-11 13:28:34 +01:00 |
|
Thomas Friedel
|
a80e3778fd
|
changed the way window scaling is done
to support high DPI scaling, use the FramebufferSize functions in glfwcanvas and sdlcanvas to determine the canvas size
|
2020-02-11 11:36:16 +01:00 |
|
Thomas Friedel
|
259bb9e598
|
fixed Arc and ArcTo scaling
|
2020-02-11 11:10:53 +01:00 |
|
Thomas Friedel
|
50c77477c9
|
another triangulation bugfix, points should be considered inside the polygon if they are on a line, with a small amount of tolerance
|
2020-02-01 16:25:11 +01:00 |
|
Thomas Friedel
|
3f85d64ff3
|
ignore files starting with _
|
2020-02-01 15:51:45 +01:00 |
|
Thomas Friedel
|
1333730731
|
fixed a triangulation bug
|
2020-02-01 15:51:21 +01:00 |
|
Thomas Friedel
|
6912878a8c
|
sdlcanvas and glfwcanvas now scale automatically for hidpi
removed glfw 3.2 dependency
|
2020-01-25 16:56:32 +01:00 |
|
Thomas Friedel
|
04d4dab3ff
|
fixed resize when using macOS hidpi
|
2020-01-25 16:35:15 +01:00 |
|
Thomas Friedel
|
ecadd0e5ec
|
added support for macOS hidpi when using SDL
updated to go-sdl 0.4
|
2020-01-25 16:29:27 +01:00 |
|
Thomas Friedel
|
c8ff508299
|
updated glfw code to fix scaling on macOS
|
2020-01-25 15:59:54 +01:00 |
|
Thomas Friedel
|
79fde3ee1d
|
Merge pull request #22 from kanle-hotstar/bugfix/avoid-panic-when-loading-image-cache
Fix a panic issue of loading an image from cache
|
2019-12-18 16:57:50 +01:00 |
|
Kanle Shi
|
9729daa6d4
|
Fix a panic issue of loading an image from cache
|
2019-12-13 14:49:38 +08:00 |
|
Thomas Friedel
|
f0367ee72d
|
GetImageData bugfix
|
2019-12-04 12:13:09 +01:00 |
|
Thomas Friedel
|
fd1cca7ba9
|
LoadImage now also checks cache; updated go.mod/go.sum
|
2019-11-26 12:13:03 +01:00 |
|
Thomas Friedel
|
71741d4234
|
fixed a bug with anticlockwise arcs and ellipses
updated to new sdl library version
|
2019-10-01 12:04:18 +02:00 |
|
Thomas Friedel
|
239ab21259
|
added ellipse function
|
2019-10-01 11:49:58 +02:00 |
|
Thomas Friedel
|
950d2bb30a
|
added go version to go.mod
|
2019-10-01 11:27:10 +02:00 |
|