16 Commits

Author SHA1 Message Date
Max Bernstein
4bd64ea226 Only sleep for the rest of the frame budget
Previously, we were sleeping as long as the paint took. Now, we only sleep for the rest of the allotted budget (if any).

Thanks to @lgarbarini for helping debug.
2024-08-11 15:00:30 -04:00
Dennis Schön
509a2eaf48 fix obsolete fenster_time() declaration 2023-10-21 17:38:14 +02:00
Ian Bryant
5a005ec1e8 revert to BI_BITFIELDS 2023-04-26 19:20:16 -04:00
Ian Bryant
3441e1715e Fix BITMAPINFO out of bounds access. Revert to BI_BITFIELDS.
Replace BITMAPINFO with custom struct because BITMAPINFO doesn't have 3 RGBQUADs. BI_BITFIELDS is the correct format for what we are doing.
2023-04-26 19:15:01 -04:00
dartvader316
7685eb9086 use BI_RGB for bitmap and fix _WIN32 2023-03-13 20:59:26 +03:00
Serge Zaitsev
63e84e0a7f actually, make cxx bindings part of the main header 2023-02-10 15:51:44 +01:00
Grauho
ad01c341ef Fixed the window closing issue on MacOS
The primary event loop was setting the internal fenster struct element to indicate a mouse event had occurred and was then returning zero. Instead it should break and pass those events onto Cocoa so that the delegate can get triggered.
2023-02-08 10:56:42 -05:00
Serge Zaitsev
5eb2251d33 formatting 2023-01-23 17:54:55 +01:00
Serge Zaitsev
2442c22a4d implement mouse on linux 2023-01-19 13:52:35 +01:00
Serge Zaitsev
d117c1de05 implement mouse input for windows 2023-01-19 10:08:15 +01:00
Serge Zaitsev
b98d64e417 add mouse support for macos 2023-01-18 19:35:27 +01:00
Serge Zaitsev
01b96eac45 add audio for alsa/linux 2023-01-18 13:13:42 +01:00
Serge Zaitsev
b58fe8cd60 move examples into individual subfolders 2023-01-16 15:50:23 +01:00
Serge Zaitsev
aabb62ca96 use int64_t for time 2023-01-14 13:38:58 +01:00
Serge Zaitsev
0e2cf198b0 apply formatting 2023-01-14 13:09:29 +01:00
Serge Zaitsev
c7ee83399f initial commit 2023-01-13 16:47:22 +01:00