Thomas Friedel
|
caaba150e8
|
fixed a bug when lines in a polygon are parallel
|
2018-09-18 14:15:42 +02:00 |
|
Thomas Friedel
|
56995ff396
|
line dash is now only applied when calling stroke
|
2018-09-01 16:42:07 +02:00 |
|
Thomas Friedel
|
b6c22b9374
|
line dash bugfix, implemented getLineDash, added a test
|
2018-07-30 14:56:19 +02:00 |
|
Thomas Friedel
|
aabe03b003
|
added support for miter limit
|
2018-07-19 18:05:41 +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
|
964380f673
|
implemented clearRect
|
2018-05-23 12:33:18 +02:00 |
|
Thomas Friedel
|
0efc4c6d59
|
line widths now work more like the html5 canvas
|
2018-05-17 16:24:46 +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
|
c50447827c
|
fixed doc
|
2018-04-30 12:10:18 +02:00 |
|
Thomas Friedel
|
05a7355a7f
|
fixed closed paths
|
2018-04-30 11:34:33 +02:00 |
|
Thomas Friedel
|
616ddaded0
|
fixed some clipping bugs
|
2018-04-30 11:01:31 +02:00 |
|
Thomas Friedel
|
8507e9ed71
|
added documentation
|
2018-04-11 17:40:39 +02:00 |
|
Thomas Friedel
|
e75355ac37
|
implemented globalAlpha
|
2018-04-09 17:39:26 +02:00 |
|
Thomas Friedel
|
3854f40898
|
arcs are now marked as convex to optimize performance
|
2018-04-04 17:12:57 +02:00 |
|
Thomas Friedel
|
8502818b6f
|
clipping with the rect function now uses scissor test instead of stencil
|
2018-04-04 17:10:36 +02:00 |
|
Thomas Friedel
|
d5a4c0b4bb
|
use bit flags instead of booleans for more compact storage
|
2018-04-04 16:37:46 +02:00 |
|
Thomas Friedel
|
f0d9b83afb
|
moved FillRect into paths.go
|
2018-04-04 16:15:54 +02:00 |
|
Thomas Friedel
|
ef652e17ba
|
added StrokeRect function
|
2018-04-04 16:15:39 +02:00 |
|
Thomas Friedel
|
c1dce1c12a
|
fill fix
|
2018-04-04 16:05:38 +02:00 |
|
Thomas Friedel
|
d08eb63181
|
added rect function
|
2018-04-04 16:01:26 +02:00 |
|
Thomas Friedel
|
7be3a4383c
|
paths with sub-paths fixed
|
2018-04-04 16:01:11 +02:00 |
|
Thomas Friedel
|
649cffa1e3
|
clipping fixed
|
2018-03-25 15:42:23 +02:00 |
|
Thomas Friedel
|
888c667a36
|
miter line join fix
|
2018-03-21 16:04:52 +01:00 |
|
Thomas Friedel
|
e138d853c6
|
stencil buffer usage bugfix
|
2018-03-21 15:45:19 +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
|
075abc4f03
|
bugfix for an edge case
|
2018-03-14 15:37:01 +01:00 |
|
Thomas Friedel
|
caa356aa12
|
added quadratic and bezier curves
|
2018-03-08 16:42:16 +01:00 |
|
Thomas Friedel
|
efafa0f6f7
|
fixed a problem with miter joints if the lines are parallel
|
2018-02-22 14:19:47 +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
|
31c2eb204e
|
fixed the line intersection calculation; splitting polygons at self-intersections now works
|
2018-02-12 10:30:49 +01:00 |
|
Thomas Friedel
|
a7c6f10541
|
added some code to cut the intersections in self-intersecting polygons, but didn't activate it yet since it doesn't seem to work
|
2018-02-11 17:28:41 +01:00 |
|
Thomas Friedel
|
a3fc5eba89
|
small improvements and fixes
|
2018-02-11 16:50:50 +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
|
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
|
9ed7a36cbc
|
changed gl color from four floats to a struct type
|
2018-02-07 11:37:08 +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
|
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 |
|