Commit graph

28 commits

Author SHA1 Message Date
Thomas Friedel
6d46d9d554 removed the clipping reapplication after context switching since it didn't work properly 2019-04-18 14:46:20 +02:00
Thomas Friedel
0e16a8261b added function to create an image pattern 2019-03-28 11:25:59 +01:00
Thomas Friedel
6a082a74a3 clipping bugfix 2019-03-28 10:53:49 +01:00
Thomas Friedel
04b3418c3b added an activate function and an exported TextureID so that other GL code can also use the canvas 2019-03-20 12:18:36 +01:00
Thomas Friedel
c98bc6c23d backend can now reuse gl contexts, updated examples and docs 2019-03-20 11:48:52 +01:00
Thomas Friedel
ba8238ba66 canvas bounds update fix, gomobile example works again 2019-02-27 15:46:08 +01:00
Thomas Friedel
9c3cccabdd offscreen backend now has its own type, can be used as image when drawing images 2019-02-27 13:05:23 +01:00
Thomas Friedel
549a6f2c2e switched to a simplified generated gl binding that should work with both regular GL and GLES 2019-02-24 13:28:50 +01:00
Thomas Friedel
77a9d14867 added an xmobile backend that can be generated from the gogl backend 2019-02-24 13:19:21 +01:00
Thomas Friedel
93c75a9b61 clear stencil when bounds change 2019-02-24 11:08:22 +01:00
Thomas Friedel
c207447158 SetBounds on GL backend now sets the viewport right away; updated drawing example 2019-02-24 11:01:33 +01:00
Thomas Friedel
ed34e3d8c4 removed matrix code in backend 2019-02-22 16:54:37 +01:00
Thomas Friedel
816582dbb3 removed FillMatrix and moved transformations to frontend 2019-02-22 16:53:53 +01:00
Thomas Friedel
3e874d544b updated tests, copied improved gradients from master branch 2019-02-22 16:44:34 +01:00
Thomas Friedel
97dff96ca2 removed unused shader variables 2019-02-22 16:39:30 +01:00
Thomas Friedel
8dc91b34f5 moved offscreen canvas to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
fe9d6e60e4 moved clipping to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
cf788d55f3 unified Clear and ClearRect 2019-02-22 16:39:30 +01:00
Thomas Friedel
fc4d3dbd9e moved image data code into backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
e7d0b1a7ee text shadow rendering moved to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
43f040f777 moved text display to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
c5c13de2a4 moved gradients to backend 2019-02-22 16:39:30 +01:00
Thomas Friedel
a354e192b6 image pattern support in backend 2019-02-22 16:39:18 +01:00
Thomas Friedel
476dbac6e2 moved image loading and drawing into backend 2019-02-22 16:39:18 +01:00
Thomas Friedel
c28c50a22e added a blurred fill style in backend, used it for blurred shadow drawing 2019-02-22 16:38:27 +01:00
Thomas Friedel
359b52f473 more general backend fill function 2019-02-22 16:38:27 +01:00
Thomas Friedel
114b292be7 moved some more gl code into the backend 2019-02-22 16:38:27 +01:00
Thomas Friedel
7dbcd9b420 made DrawStyle public for use by backends; changed color to be color.RGBA 2019-02-22 16:38:27 +01:00
Renamed from backend/goglbackend/gogl.go (Browse further)