Commit graph

240 commits

Author SHA1 Message Date
Thomas Friedel
ac8adda421 made stroke and fill style code more generic 2018-02-09 11:41:57 +01:00
Thomas Friedel
91e8935866 added a generic function to initialize the correct shader for any fill operation 2018-02-09 11:35:32 +01:00
Thomas Friedel
3710a446b5 added image patterns 2018-02-09 11:21:27 +01:00
Thomas Friedel
bed6cdc50a radial gradient works now 2018-02-08 16:03:35 +01:00
Thomas Friedel
9c7a01b8b8 prepared radial gradients, but they don't work yet 2018-02-08 13:00:16 +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
7edac03910 added linear gradients 2018-02-07 12:53:46 +01:00
Thomas Friedel
49eb9de8e6 bugfix for alpha in hex color strings 2018-02-07 12:53:14 +01:00
Thomas Friedel
9ed7a36cbc changed gl color from four floats to a struct type 2018-02-07 11:37:08 +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
9c1845211a added safer lower limit for circle steps 2018-02-06 17:06:59 +01:00
Thomas Friedel
5e6a33f77e added arcTo 2018-02-06 11:35:46 +01:00
Thomas Friedel
9b5004d6b9 fixed a bug with anticlockwise arcs 2018-02-06 11:33:20 +01:00
Thomas Friedel
e5bdee1d67 calculate circle steps dynamically 2018-02-06 10:57:02 +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
3ead983efa clipping is now saved and restored 2018-02-05 12:27:34 +01:00
Thomas Friedel
56f9d04c91 added image data functions 2018-02-05 12:19:42 +01:00
Thomas Friedel
eadf67572c added some more transform methods 2018-02-05 11:53:15 +01:00
Thomas Friedel
ad4fee68ef fixed a bug with the way the stencil buffer was used 2018-02-05 11:11:08 +01:00
Thomas Friedel
46c68ca5ad added dashed lines 2018-02-05 11:10:50 +01:00
Thomas Friedel
d9854d540e added line end styles 2018-01-31 21:37:47 +01:00
Thomas Friedel
f46b60da65 added different line joint styles 2018-01-31 18:38:09 +01:00
Thomas Friedel
a8db8886c7 added miter joints for stroked paths 2018-01-31 16:50:36 +01:00
Thomas Friedel
20674e7f7a polygons should only be defined by the path since the last moveTo 2018-01-31 12:12:42 +01:00
Thomas Friedel
4a0b551a93 added a clip function to clip to a polygon (doesn't work with save/restore yet) 2018-01-30 18:32:39 +01:00
Thomas Friedel
1727f47a6f moved package 2018-01-30 13:02:34 +01:00
Thomas Friedel
395ef95009 added transformations, translate, scale, rotate 2018-01-29 16:04:56 +01:00
Thomas Friedel
6480345a60 added save and restore functions for draw state 2018-01-29 15:32:17 +01:00
Thomas Friedel
8a66ff2166 moved a freetype source file into the project and optimized it for the given purpose, only upload rendered text rectangle to the texture 2018-01-29 13:14:42 +01:00
Thomas Friedel
79bf4f6b5f arc function implemented 2018-01-25 16:24:32 +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
67142c3c8d added an fps counter function 2018-01-25 15:07:22 +01:00
Thomas Friedel
9d0dad8bba added a package to create a simple window with a canvas using SDL 2018-01-25 12:36:29 +01:00
Thomas Friedel
6c0234959e added support for loading and drawing images 2018-01-25 12:08:39 +01:00
Thomas Friedel
47e34cc670 changed library import path 2018-01-25 10:57:28 +01:00
Thomas Friedel
d9d3099087 ignored some files 2018-01-24 17:02:15 +01:00
Thomas Friedel
97615b7595 added polygon filling 2018-01-24 16:59:07 +01:00
Thomas Friedel
c1de2f2b7d a go-gl implementation of the gl interface 2018-01-24 14:20:12 +01:00
Thomas Friedel
4be47cd5ab first version 2018-01-24 14:19:32 +01:00