58 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
Serge Zaitsev
92aa0ecd30 Merge pull request #23 from roccoblues/strict-prototypes
fix deprecated fenster_time() declaration
v0.1.0
2023-11-13 15:43:38 +01:00
Dennis Schön
509a2eaf48 fix obsolete fenster_time() declaration 2023-10-21 17:38:14 +02:00
Serge Zaitsev
d41e734c04 Merge pull request #19 from recidivism5/recidivism5-fix-BITMAPINFO-out-of-bounds
Fix BITMAPINFO out of bounds access. Revert to BI_BITFIELDS.
2023-05-01 21:04:18 +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
Serge Zaitsev
2adefcbbeb Merge pull request #16 from dartvader316/use-bi-rgb-for-bitmap
use BI_RGB for bitmap and fix _WIN32
2023-03-30 08:34:48 +02: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
Serge Zaitsev
959d3ce557 add c++ bindings 2023-02-10 11:06:31 +01:00
Serge Zaitsev
90392e6ee9 Merge pull request #13 from grauho/main
Fixed the window closing issue on MacOS
2023-02-09 10:10:24 +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
63217b2398 change readme link 2023-01-23 18:52:27 +01:00
Serge Zaitsev
0d159c17b2 add doom port 2023-01-23 18:51:52 +01:00
Serge Zaitsev
ec622e21dc add doom port 2023-01-23 18:44:45 +01:00
Serge Zaitsev
e71d493fa6 update gitignore 2023-01-23 17:54:55 +01:00
Serge Zaitsev
13da70d687 edit readme 2023-01-23 17:54:55 +01:00
Serge Zaitsev
2497ce1bda formatting 2023-01-23 17:54:55 +01:00
Serge Zaitsev
5eb2251d33 formatting 2023-01-23 17:54:55 +01:00
Serge Zaitsev
69fc4fd862 Merge pull request #5 from dim13/sound
Minor fixes to audio code
2023-01-21 11:22:19 +01:00
Dimitri Sokolyuk
c98568f602 Minor fixes to audio code 2023-01-19 21:33:06 +01:00
Serge Zaitsev
2442c22a4d implement mouse on linux 2023-01-19 13:52:35 +01:00
Serge Zaitsev
c6e4f84f69 rename keyboard example to input 2023-01-19 10:08:34 +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
eb5e5674d5 16-bit sound for winmm 2023-01-18 15:00:08 +01:00
Serge Zaitsev
6defe57cd2 add audio for winmm (8bit for now) 2023-01-18 14:08:23 +01:00
Serge Zaitsev
6ba8e02f44 formatting 2023-01-18 13:17:12 +01:00
Serge Zaitsev
01b96eac45 add audio for alsa/linux 2023-01-18 13:13:42 +01:00
Serge Zaitsev
b2ee60e935 add audio example 2023-01-18 12:34:32 +01:00
Serge Zaitsev
2a5bb89a50 add minimal audio for macos 2023-01-18 11:56:48 +01:00
Serge Zaitsev
6f0e5abcd9 Merge pull request #4 from dim13/main
Remove build constraint for examples, cleanup image example
2023-01-17 11:21:08 +01:00
Dimitri Sokolyuk
5cbf91d822 Less psychodelic image example; add some snow to TV screen, embed BG
image
2023-01-16 19:19:47 +01:00
Dimitri Sokolyuk
1105389a9e Remove build constraint 2023-01-16 19:10:47 +01:00
Serge Zaitsev
31d49cc3b8 add another link to readme 2023-01-16 18:47:52 +01:00
Serge Zaitsev
7f509ecd04 add link to godoc 2023-01-16 18:44:15 +01:00
Serge Zaitsev
4b47c6a72d edit readme 2023-01-16 18:42:49 +01:00
Serge Zaitsev
3a3b4d6f48 add zig example 2023-01-16 15:50:39 +01:00
Serge Zaitsev
b58fe8cd60 move examples into individual subfolders 2023-01-16 15:50:23 +01:00
Serge Zaitsev
de93297d65 edit readme about bindings 2023-01-16 11:51:31 +01:00
Serge Zaitsev
3dca8bab94 Merge pull request #3 from dim13/main 2023-01-16 08:14:07 +01:00
Dimitri Sokolyuk
0ad3dd96fa Add doom fire example 2023-01-15 23:00:20 +01:00
Dimitri Sokolyuk
4b25db9da8 Pass delay to Loop 2023-01-15 22:29:50 +01:00
Dimitri Sokolyuk
2d544291d8 Replace Open with New 2023-01-15 21:09:31 +01:00
Serge Zaitsev
24e42e4e8d Merge pull request #2 from dim13/main
Implement draw.Image
2023-01-15 13:48:52 +01:00
Dimitri Sokolyuk
77cfc2acbd Create go.yml 2023-01-14 22:23:28 +01:00
Dimitri Sokolyuk
d3f81f4c69 Set build tag 2023-01-14 22:20:31 +01:00
Dimitri Sokolyuk
c33b7ee0a2 Implement draw.Image 2023-01-14 22:15:27 +01:00
Serge Zaitsev
f8e663ffb9 add Go bindings 2023-01-14 13:39:10 +01:00
Serge Zaitsev
aabb62ca96 use int64_t for time 2023-01-14 13:38:58 +01:00