Commit graph

27 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
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
bbcb712b73 renamed the backend directories so they match the package names 2019-05-12 13:06:23 +02:00
Thomas Friedel
c98bc6c23d backend can now reuse gl contexts, updated examples and docs 2019-03-20 11:48:52 +01:00
Thomas Friedel
122488e64c updated glfwcanvas to use gl backend, fixed error handling 2019-02-24 16:34:42 +01:00
Thomas Friedel
8dc91b34f5 moved offscreen canvas 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
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
7dbcd9b420 made DrawStyle public for use by backends; changed color to be color.RGBA 2019-02-22 16:38:27 +01:00
Thomas Friedel
afbdfdec44 added a Size function to get the window size 2018-11-13 12:19:05 +01:00
Thomas Friedel
77993ea244 added MouseWheel event function 2018-09-08 11:07:55 +02:00
Thomas Friedel
61ad4d0dc2 sdlcanvas package now handles resize events automatically if there is no resize handler 2018-05-28 16:14:01 +02:00
Thomas Friedel
a42e694c47 moved the gl implementations into a subdirectory 2018-05-17 15:16:50 +02:00
Jack Wakefield
27f755f171 added a size change event handler 2018-05-16 00:11:31 +01:00
Thomas Friedel
fc1a194e69 added a key char event handler 2018-05-09 19:45:21 +02:00
Thomas Friedel
6ed91cb412 updated to go-sdl2 v0.3; also fixed key runes 2018-05-09 19:24:00 +02:00
Thomas Friedel
489a758c3c also close window on quit event 2018-04-14 11:21:37 +02:00
Thomas Friedel
34ceb96676 fallback to no msaa 2018-03-28 18:58:07 +02:00
Thomas Friedel
1703c1a8fd added documentation; added input event functions 2018-03-28 11:30:46 +02:00
Thomas Friedel
649cffa1e3 clipping fixed 2018-03-25 15:42:23 +02:00
Thomas Friedel
f57765cdc5 split main loop for manual main loop support 2018-03-24 19:20:30 +01:00
Thomas Friedel
d0dc6c1f5c removed log message 2018-03-21 12:09:10 +01:00
Thomas Friedel
1727f47a6f moved package 2018-01-30 13:02:34 +01:00
Thomas Friedel
67142c3c8d added an fps counter function 2018-01-25 15:07:22 +01:00
Thomas Friedel
9d0dad8bba added a package to create a simple window with a canvas using SDL 2018-01-25 12:36:29 +01:00