Commit graph

29 commits

Author SHA1 Message Date
Thomas Friedel
476dbac6e2 moved image loading and drawing into backend 2019-02-22 16:39:18 +01:00
Thomas Friedel
c5c8ac500f some shadow drawing now works using the backend 2019-02-22 16:38:27 +01:00
Thomas Friedel
6f74599567 added an offscreen canvas 2018-10-31 12:30:39 +01:00
Thomas Friedel
32bbbdd7c8 added a way to replace an image after it has been loaded 2018-10-20 12:43:25 +02:00
Thomas Friedel
091db17ac0 DrawImage can now take image.Image values; added error messages if the automatic image and font loading doesn't work 2018-10-06 18:20:20 +02:00
Thomas Friedel
34c01f47d4 added checks that LoadGL is called before anything else is done 2018-09-18 14:20:08 +02:00
Thomas Friedel
f2225e857a implemented shadowBlur (wip) 2018-07-27 14:11:53 +02:00
Thomas Friedel
5da544d78b performance optimization, avoid use of stencil buffer when drawing with opaque styles 2018-07-19 16:59:22 +02:00
Thomas Friedel
6b4af8f29f added support for shadows (not yet blurred) 2018-06-14 15:03:25 +02:00
Thomas Friedel
3b9604efab bugfix, cached images were only rendered from the next frame onwards 2018-06-10 17:52:59 +02:00
Thomas Friedel
06267645f6 changed openglinterface a bit to be less specific to the go-gl implementation 2018-05-10 13:08:30 +02:00
Thomas Friedel
5bd0ccce2e updated docs 2018-04-30 16:30:19 +02:00
Thomas Friedel
3a51ce9843 more clipping fixes 2018-04-30 11:25:25 +02:00
Thomas Friedel
e75355ac37 implemented globalAlpha 2018-04-09 17:39:26 +02:00
Thomas Friedel
3fcf95cc86 fixed cache bug 2018-04-05 20:13:17 +02:00
Thomas Friedel
1699257f6d removed the name parameter from LoadImage as well; fixed a bug if the image finalizer is called after explicitly deleting 2018-04-05 18:54:14 +02:00
Thomas Friedel
df650c6113 deduplicated some code 2018-03-27 16:03:02 +02:00
Thomas Friedel
37767fa86f more documentation; renamed W/H to Width/Height on Image type 2018-03-27 15:57:01 +02:00
Thomas Friedel
dfba64a1fd fixed some bugs from the float32->float64 conversion 2018-03-21 15:51:07 +01:00
Thomas Friedel
26d11865b5 switched from float32 to float64 for better compatibility with the default go math package; moved vector and matrix code into package 2018-03-21 12:45:32 +01:00
Thomas Friedel
da6538b1e3 shaders are now in their own file; text fill now uses font rendering more directly and supports fill styles 2018-02-26 15:40:48 +01:00
Thomas Friedel
5175b1ba73 images and fonts can now be optionally named for later access; DrawImage and SetFont can now accept file names directly and will cache using the path 2018-02-15 10:12:32 +01:00
Thomas Friedel
2de2dd26a4 moved the canvas to gl coordinate transformation to the shaders; fixed some bugs along the way 2018-02-08 11:53:32 +01:00
Thomas Friedel
d3dc4cc3b7 added a way to delete images; images are now also deleted automatically in the finalizer 2018-02-07 11:27:46 +01:00
Thomas Friedel
0bd060ae1b path points are now transformed by the transformation matrix as they are added 2018-02-05 19:53:10 +01:00
Thomas Friedel
395ef95009 added transformations, translate, scale, rotate 2018-01-29 16:04:56 +01:00
Thomas Friedel
0715639ad2 rearranged things a bit 2018-01-25 15:50:05 +01:00
Thomas Friedel
85667e8f57 added support for loading fonts and rendering text (highly unoptimized so far) 2018-01-25 15:08:03 +01:00
Thomas Friedel
6c0234959e added support for loading and drawing images 2018-01-25 12:08:39 +01:00