Commit graph

315 commits

Author SHA1 Message Date
Thomas Friedel
a80e3778fd changed the way window scaling is done
to support high DPI scaling, use the FramebufferSize functions in glfwcanvas and sdlcanvas to determine the canvas size
2020-02-11 11:36:16 +01:00
Thomas Friedel
259bb9e598 fixed Arc and ArcTo scaling 2020-02-11 11:10:53 +01:00
Thomas Friedel
50c77477c9 another triangulation bugfix, points should be considered inside the polygon if they are on a line, with a small amount of tolerance 2020-02-01 16:25:11 +01:00
Thomas Friedel
3f85d64ff3 ignore files starting with _ 2020-02-01 15:51:45 +01:00
Thomas Friedel
1333730731 fixed a triangulation bug 2020-02-01 15:51:21 +01:00
Thomas Friedel
6912878a8c sdlcanvas and glfwcanvas now scale automatically for hidpi
removed glfw 3.2 dependency
2020-01-25 16:56:32 +01:00
Thomas Friedel
04d4dab3ff fixed resize when using macOS hidpi 2020-01-25 16:35:15 +01:00
Thomas Friedel
ecadd0e5ec added support for macOS hidpi when using SDL
updated to go-sdl 0.4
2020-01-25 16:29:27 +01:00
Thomas Friedel
c8ff508299 updated glfw code to fix scaling on macOS 2020-01-25 15:59:54 +01:00
Thomas Friedel
79fde3ee1d
Merge pull request #22 from kanle-hotstar/bugfix/avoid-panic-when-loading-image-cache
Fix a panic issue of loading an image from cache
2019-12-18 16:57:50 +01:00
Kanle Shi
9729daa6d4 Fix a panic issue of loading an image from cache 2019-12-13 14:49:38 +08:00
Thomas Friedel
f0367ee72d GetImageData bugfix 2019-12-04 12:13:09 +01:00
Thomas Friedel
fd1cca7ba9 LoadImage now also checks cache; updated go.mod/go.sum 2019-11-26 12:13:03 +01:00
Thomas Friedel
71741d4234 fixed a bug with anticlockwise arcs and ellipses
updated to new sdl library version
2019-10-01 12:04:18 +02:00
Thomas Friedel
239ab21259 added ellipse function 2019-10-01 11:49:58 +02:00
Thomas Friedel
950d2bb30a added go version to go.mod 2019-10-01 11:27:10 +02:00
Thomas Friedel
58e7c45597 fixed key name 2019-10-01 11:26:50 +02:00
Thomas Friedel
98a8334efc added a todo, regenerated xmobile backend 2019-07-10 11:36:02 +02:00
Thomas Friedel
9f92f2c5c4 added an error if glGenTextures fails 2019-07-10 11:34:21 +02:00
Thomas Friedel
5ce888f8b9 small performance improvements 2019-05-23 16:32:03 +02:00
Thomas Friedel
b5212c916a added an example for software rendering
updated readme
2019-05-13 12:29:25 +02:00
Thomas Friedel
349e01e301 removed the shaders from the main canvas package, which were no longer used 2019-05-13 12:19:56 +02:00
Thomas Friedel
92d388c3c4 tests should run on OpenGL backend 2019-05-13 12:07:22 +02:00
Thomas Friedel
0386303dd6 updated readme 2019-05-13 12:03:55 +02:00
Thomas Friedel
e44b120ad8 removed gaussian blur code 2019-05-13 11:56:53 +02:00
Thomas Friedel
3695a6ef59 improved box blur accuracy 2019-05-13 11:56:36 +02:00
Thomas Friedel
62e4cae716 image mask uses fill style 2019-05-12 13:06:23 +02:00
Thomas Friedel
ea3cb81231 renamed mask to stencil 2019-05-12 13:06:23 +02:00
Thomas Friedel
c945678725 fixed xmobile backend 2019-05-12 13:06:23 +02:00
Thomas Friedel
505386f199 added shadow blur to software implementation 2019-05-12 13:06:23 +02:00
Thomas Friedel
e0b88c0ca6 implemented MSAA on quad drawing 2019-05-12 13:06:23 +02:00
Thomas Friedel
17b212acba implemented msaa 2019-05-12 13:06:23 +02:00
Thomas Friedel
554fa84a0a added code for MSAA, doesn't work properly yet though 2019-05-12 13:06:23 +02:00
Thomas Friedel
d56f68b2e7 implemented software image pattern filling, added a test 2019-05-12 13:06:23 +02:00
Thomas Friedel
4e5c38b295 implemented mipmapping 2019-05-12 13:06:23 +02:00
Thomas Friedel
bbcb712b73 renamed the backend directories so they match the package names 2019-05-12 13:06:23 +02:00
Thomas Friedel
623a4742ce removed debug code 2019-05-12 13:06:23 +02:00
Thomas Friedel
bfbd54827b ignore .vscode dir 2019-05-12 13:06:23 +02:00
Thomas Friedel
a913b8b33b implemented software gradients 2019-05-12 13:06:23 +02:00
Thomas Friedel
e3bb07a09c fixed image drawing, added some interpolation 2019-05-12 13:06:23 +02:00
Thomas Friedel
a0a1adef12 fixed overlapping alpha 2019-05-12 13:06:23 +02:00
Thomas Friedel
9edbb8da85 added a boolean to run tests on the software backend 2019-05-12 13:06:23 +02:00
Thomas Friedel
ec3bde6374 proper color mixing 2019-05-12 13:06:23 +02:00
Thomas Friedel
4d0f41cc6b more precise rasterization 2019-05-12 13:06:23 +02:00
Thomas Friedel
973e410204 more accurate rasterizing 2019-05-12 13:06:23 +02:00
Thomas Friedel
d1d2186a2f added a function to run the tests on the software backend 2019-05-12 13:06:23 +02:00
Thomas Friedel
7fa1f9096f implemented FillImageMask in software backend 2019-05-12 13:06:23 +02:00
Thomas Friedel
faf179caa0 implemented clipping and drawImage 2019-05-12 13:06:23 +02:00
Thomas Friedel
9f99dff89b started a software backend 2019-05-12 13:06:23 +02:00
Thomas Friedel
a4826a3e12 fixed a problem with closed paths and self intersecting polygons
added the readme example as a test
2019-05-12 13:05:49 +02:00