Kanle Shi
|
9729daa6d4
|
Fix a panic issue of loading an image from cache
|
2019-12-13 14:49:38 +08:00 |
|
Thomas Friedel
|
fd1cca7ba9
|
LoadImage now also checks cache; updated go.mod/go.sum
|
2019-11-26 12:13:03 +01:00 |
|
Thomas Friedel
|
5ce888f8b9
|
small performance improvements
|
2019-05-23 16:32:03 +02:00 |
|
Thomas Friedel
|
aa059cfcf3
|
more image pattern fixes
|
2019-05-02 12:42:23 +02:00 |
|
Thomas Friedel
|
23a92d2221
|
fixed image pattern transform matrix
|
2019-05-02 12:23:53 +02:00 |
|
Thomas Friedel
|
f89b3eccdc
|
implemented imapge pattern repeat types
|
2019-04-25 17:58:21 +02:00 |
|
Thomas Friedel
|
a5d921223f
|
implemented image pattern transformation
|
2019-04-25 17:46:53 +02:00 |
|
Thomas Friedel
|
0476a8a85f
|
shadow global alpha fix
|
2019-04-24 12:34:36 +02:00 |
|
Thomas Friedel
|
0e16a8261b
|
added function to create an image pattern
|
2019-03-28 11:25:59 +01:00 |
|
Thomas Friedel
|
22c3c25d8e
|
removed opaque and deleted flags from backend, deleted state is now maintained in frontend
|
2019-02-27 16:06:41 +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
|
63b71e5e52
|
fixed image drawing transformation
|
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
|
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
|
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
|
6f74599567
|
added an offscreen canvas
|
2018-10-31 12:30:39 +01:00 |
|
Thomas Friedel
|
32bbbdd7c8
|
added a way to replace an image after it has been loaded
|
2018-10-20 12:43:25 +02:00 |
|
Thomas Friedel
|
091db17ac0
|
DrawImage can now take image.Image values; added error messages if the automatic image and font loading doesn't work
|
2018-10-06 18:20:20 +02:00 |
|
Thomas Friedel
|
34c01f47d4
|
added checks that LoadGL is called before anything else is done
|
2018-09-18 14:20:08 +02:00 |
|
Thomas Friedel
|
f2225e857a
|
implemented shadowBlur (wip)
|
2018-07-27 14:11:53 +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
|
3b9604efab
|
bugfix, cached images were only rendered from the next frame onwards
|
2018-06-10 17:52:59 +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
|
5bd0ccce2e
|
updated docs
|
2018-04-30 16:30:19 +02:00 |
|
Thomas Friedel
|
3a51ce9843
|
more clipping fixes
|
2018-04-30 11:25:25 +02:00 |
|
Thomas Friedel
|
e75355ac37
|
implemented globalAlpha
|
2018-04-09 17:39:26 +02:00 |
|
Thomas Friedel
|
3fcf95cc86
|
fixed cache bug
|
2018-04-05 20:13:17 +02:00 |
|
Thomas Friedel
|
1699257f6d
|
removed the name parameter from LoadImage as well; fixed a bug if the image finalizer is called after explicitly deleting
|
2018-04-05 18:54:14 +02:00 |
|
Thomas Friedel
|
df650c6113
|
deduplicated some code
|
2018-03-27 16:03:02 +02:00 |
|
Thomas Friedel
|
37767fa86f
|
more documentation; renamed W/H to Width/Height on Image type
|
2018-03-27 15:57:01 +02:00 |
|
Thomas Friedel
|
dfba64a1fd
|
fixed some bugs from the float32->float64 conversion
|
2018-03-21 15:51:07 +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
|
da6538b1e3
|
shaders are now in their own file; text fill now uses font rendering more directly and supports fill styles
|
2018-02-26 15:40:48 +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
|
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
|
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
|
395ef95009
|
added transformations, translate, scale, rotate
|
2018-01-29 16:04:56 +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 |
|