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
|
e7d0b1a7ee
|
text shadow rendering moved to backend
|
2019-02-22 16:39:30 +01:00 |
|
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
|
38eddd2837
|
moved a lot of fill code to the backend; also started moving shadow drawing code to backend
|
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
|
1e5180dd65
|
started work on moving all the gl code into a backend package so that other backends can be created
|
2019-02-22 16:38:27 +01:00 |
|
Thomas Friedel
|
65ebe6af69
|
arc transformation fix
|
2019-02-21 11:03:38 +01:00 |
|
Thomas Friedel
|
7aeae444a9
|
fixed a rect clipping bug
|
2019-01-26 23:02:02 +01:00 |
|
Thomas Friedel
|
c1f855278d
|
undid some of the changes from the last update since it didn't work properly; added some tests
|
2019-01-25 13:16:48 +01:00 |
|
Thomas Friedel
|
c5d148331b
|
proper scaling of stroked paths
|
2019-01-24 16:14:05 +01:00 |
|
Thomas Friedel
|
f77841e973
|
added StrokePath and FillPath functions
|
2019-01-24 15:56:47 +01:00 |
|
Thomas Friedel
|
7ce0b7bf9d
|
line dash now gets properly scaled
|
2019-01-24 10:50:39 +01:00 |
|
Thomas Friedel
|
bb244c4868
|
separated out a Path2D type
|
2019-01-23 17:23:47 +01:00 |
|
Thomas Friedel
|
3800d8519c
|
fixed a bug with self intersecting polygons, added a test
|
2019-01-11 11:01:12 +01:00 |
|
Thomas Friedel
|
ef97c9be5c
|
fixed a bug with transformations applying to dashed lines
|
2018-11-26 10:25:42 +01:00 |
|
Thomas Friedel
|
deaa8f87b6
|
added flags to track if the path is convex
|
2018-11-13 13:08:41 +01:00 |
|
Thomas Friedel
|
cb3e694671
|
changed path to a struct
|
2018-11-13 12:28:22 +01:00 |
|
Thomas Friedel
|
a99a4fddf4
|
rect function bugfix
|
2018-11-13 12:20:02 +01:00 |
|
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 |
|