Commit graph

28 commits

Author SHA1 Message Date
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
59033ea55b added canvas size methods; transformations now apply in reverse order 2018-02-12 18:53:05 +01:00
Thomas Friedel
4569cd00e1 applied fill and stroke styles to all the path functions 2018-02-09 11:48:44 +01:00
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
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
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
eadf67572c added some more transform methods 2018-02-05 11:53:15 +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
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
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
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
Thomas Friedel
47e34cc670 changed library import path 2018-01-25 10:57:28 +01:00
Thomas Friedel
97615b7595 added polygon filling 2018-01-24 16:59:07 +01:00
Thomas Friedel
4be47cd5ab first version 2018-01-24 14:19:32 +01:00