55 Commits

Author SHA1 Message Date
c3e0947312 Add *.inc pattern 2025-01-03 10:40:44 +01:00
903308a0ec Fix runtime library lookup for macOS 2024-12-29 16:51:09 +01:00
243f70c340 Add README.md 2024-12-03 17:02:54 +01:00
0ee98e401a Bump version to 2.0.0 2024-11-29 14:13:22 +01:00
c3a73c3185 Move Color class to libsccolor 2024-11-29 14:12:44 +01:00
2c8847c154 Add LICENSE 2024-11-27 12:23:57 +01:00
6ebb281482 Bumped version to 1.1.0 2024-11-27 11:28:25 +01:00
c0e677287b Move Color class from libscscreensaver 2024-11-27 11:28:05 +01:00
24f5cc3a50 Fix root user detection 2024-09-26 15:13:34 +02:00
b247493873 Add support for non-root installs 2024-09-26 12:57:26 +02:00
5147531b70 Fix deps 2024-09-12 16:40:44 +02:00
d424138e62 Replace Makefile with new version 2024-09-12 15:36:32 +02:00
bd7b67149f Fix LDLIBS linker errors 2024-03-28 15:25:09 +01:00
Bob Polis
cce7bd8958 Added ldconfig invocation for OpenBSD 2023-04-15 23:31:13 +02:00
Bob Polis
00b562337d Changed renderer flag 2023-02-13 11:46:22 +01:00
Bob Polis
b2354d68c0 Added log message when sdl2 init fails 2023-02-13 11:41:24 +01:00
Bob Polis
e5a2cb2604 Removed comment headers, fixed sdl2 includes 2023-02-13 11:23:16 +01:00
Bob Polis
55923826d2 Removed comment header, changed sdl2 includes 2023-02-13 11:20:16 +01:00
Bob Polis
640db33807 Added correct sdl2 flags using pkg-config 2023-02-13 11:19:45 +01:00
Bob Polis
63dd8c1e2b Fixed Makefile 2023-02-13 11:19:38 +01:00
Bob Polis
ad0eaaf47e Modernized Makefile 2023-02-09 18:58:57 +01:00
Bob Polis
99c8a69447 Fixed lib header install dependency 2021-12-21 15:02:54 +01:00
Bob Polis
d2f15b858d Fixed lib dependencies 2021-12-21 14:57:32 +01:00
Bob Polis
e800e79f24 Added symbol to indicate header build 2021-12-21 14:54:36 +01:00
Bob Polis
40a535b228 replaced bu latest version 2021-12-21 14:53:06 +01:00
Bob Polis
c2e8f440b4 Moved versioning to premake; added OpenBSD support 2021-12-21 10:54:39 +01:00
Bob Polis
bebb6e4393 Removed -pthread and -fno-strict-aliasing flags 2021-11-13 19:14:02 +01:00
Bob Polis
74d8f56031 Allows flags for window creation to be passed 2021-10-09 23:48:00 +02:00
Bob Polis
81278f0186 Changed to default masks to fix color bug 2021-10-09 23:37:14 +02:00
Bob Polis
68fe26613a Rmoved commented-out code 2021-02-01 13:13:32 +01:00
Bob Polis
3db2099635 Setting image no longer resizes window
It caused bugs in more general cases.
You should resize the window from app code when necessary.
2021-02-01 10:50:40 +01:00
Bob Polis
f1e82f6126 Changed callbacks to std::function
Now you can also use lambdas with captured values.
2021-02-01 00:38:55 +01:00
Bob Polis
502664615a added delay to run loop in order to cap to a given fps 2020-11-13 17:18:16 +01:00
Bob Polis
32ac8b4e0f refactored event handling; added _dirty flag to only update when dirty 2020-11-13 16:54:49 +01:00
Bob Polis
6202c7dba7 added fps; added time measurement of run loop; extra sleep commented out because of buggy update behaviour when used 2020-11-11 17:37:23 +01:00
Bob Polis
97c837f9e9 added standard unit test support 2020-11-11 17:25:24 +01:00
Bob Polis
24bed16090 changed literal to named constant 2020-11-11 17:22:45 +01:00
Bob Polis
4f9b66dc79 replaced Makefile with new one for changed project hierarchy 2020-11-11 17:21:59 +01:00
Bob Polis
b9e76c5286 moved all sources into src directory 2020-11-11 17:20:42 +01:00
Bob Polis
50b045e173 changed default window size to 1600x900 2020-10-26 23:15:50 +01:00
Bob Polis
039b7ccec0 changed default window size to 1280x720 2020-10-26 23:13:39 +01:00
Bob Polis
6097614905 added width() and height() getters 2020-10-25 20:31:19 +01:00
Bob Polis
05cf3ba0e2 moved window updating and runloop actions after event polling 2020-10-25 20:30:57 +01:00
Bob Polis
deddc2bbea added run loop actions 2020-10-25 19:03:34 +01:00
4e12340507 changed event handling order to have custom handlers fire first 2020-10-24 23:15:21 +02:00
Bob Polis
ec465820e8 added ImageLock RAII class for SDL Surface locking 2020-10-24 18:02:43 +02:00
Bob Polis
582de4df22 added getter for the texture 2020-10-24 18:02:12 +02:00
Bob Polis
84a196ab1a added constructor for external surfaces 2020-10-24 18:01:44 +02:00
Bob Polis
027b9ba84a changed polling for events to blocking call 2020-10-24 15:58:58 +02:00
Bob Polis
b67f68cd6c changed get_window() to window() for consistency 2020-10-24 15:58:09 +02:00