Commit Graph
202 Commits
Author SHA1 Message Date
Ryan C. Gordon d7e25c92c0 examples/input/03-gamepad-polling: Render axes in blue.
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
It's easier to see against white than yellow was.
2026-06-19 14:35:10 -04:00
Ryan C. Gordon f8dc19e65a examples/storage/01-user: Set up for web builds.
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2026-06-19 00:10:56 -04:00
Ethan Lee e19a6544a2 examples: Add an example for SDL_Storage user data
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2026-06-18 20:44:15 -04:00
Ryan C. Gordon 72771ac0b4 credits: Update links to Will Provost's album "The Living Proof"
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Amazon's store link was still "http://" instead of "https://", and since they
don't have the physical CD in stock anymore (and probably won't ever again), I
added a link to the album on Amazon Music, for those that want to access it.
2026-06-10 20:48:57 -04:00
Ryan C. Gordon 49a4c07e23 examples/input/05-gamepad-rumble: add some visual feedback. 2026-06-02 19:50:05 -04:00
Sam Lantinga dc8b189491 examples: Added input/05-gamepad-rumble 2026-05-31 08:32:44 -07:00
Ryan C. Gordon 6c55fad411 examples/demo/04-bytepusher: go back to showing help text on load failures.
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
If the VM was already running, and then a file failed to open at all (a
directory was dropped on the window, etc), this wouldn't go back to showing
the help text.
2026-05-23 23:56:48 -04:00
Ryan C. Gordon 800f347e5e examples/demo/04-bytepusher: Remove render target.
This doesn't need a render target to function. The comment suggested it was
needed to make debug text look better when scaled, but maybe logical
presentation used to do linear scaling exclusively at the time?
2026-05-23 23:56:18 -04:00
Ryan C. Gordon 9fe200c215 examples/renderer/20-blending: Note when a blend mode is unsupported.
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2026-05-22 10:37:15 -04:00
Ryan C. Gordon 39be8a703f examples/renderer/20-blending: center alpha and instructional text.
Otherwise, it tends to get lost behind the "Source Code" tab in the web
builds, if the browser window is too small.
2026-05-22 10:37:14 -04:00
Ryan C. Gordon d8f42ee069 examples/renderer/20-blending: Make thumbnail/onmouseover match other examples.
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2026-05-20 00:42:57 -04:00
Ryan C. Gordon 8fe1d7faec examples/save-rendering-to-bitmaps: Dump alpha channel.
examples/renderer/20-blending triggered this: the renderer's framebuffer has
an alpha channel, even if the window itself doesn't, so we ended up with some
weird rendering in the onmouseover.webp when I rebuilt it.
2026-05-20 00:40:25 -04:00
Ahmed LyasandGitHub c9e2e732b6 examples: Add blending example (#15657) 2026-05-19 21:05:23 -07:00
AhmedandSam Lantinga b5ac641372 examples: Fix float division 2026-05-18 09:00:12 -07:00
Petar PopovicandRyan C. Gordon eacfe835e7 Fix potential leak in camera example 2026-04-21 07:27:58 -04:00
Ryan C. Gordon 2b0ce9ae6e examples: Make source code and console tabs take 80% of browser page.
Fixes #14997.

(cherry picked from commit 3d2af85934)
2026-02-16 14:26:51 -05:00
RaceTheMaSeandGitHub 7c7ffb9115 tests: Fix unreachable code warnings (#14993) 2026-02-07 20:42:59 +03:00
Max SeidenstückerandÖzkan Sezer d870911202 CodeSpell 2026-02-07 18:14:00 +03:00
RaceTheMaSeandGitHub 9fda8f2669 Fix -Wnewline-eof warnings (#14989) 2026-02-07 18:04:18 +03:00
Eddy JanssonandSam Lantinga 23fec649c2 Fix typos in comments. 2026-01-30 07:25:02 -08:00
Ryan C. Gordon 1f4906e61e examples/misc/03-locale: Fixed thumbnail to have right locale count.
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
I had forced the example to a hardcoded locale list for screenshot purposes
and forgot to update the count of items at the top of the list.
2026-01-17 00:05:16 -05:00
Ryan C. Gordon 022e2747b9 examples/misc/03-locale: Added thumbnail.png for examples.libsdl.org. 2026-01-16 23:59:59 -05:00
Cameron CawleyandSam Lantinga 15ceaffcb5 examples: Added misc/03-locale 2026-01-16 12:55:57 -08:00
ocelote_mlandRyan C. Gordon 008aa18810 updated png texture example
the example was updated to use png's but they didn't update the error message nor the comments
2026-01-16 12:21:30 -05:00
Sam Lantinga 5f086e7623 Updated copyright for 2026 2026-01-01 09:40:08 -08:00
Ryan C. Gordon 69c78a7989 examples/renderer/03-lines: simplified casting on radians calculation. 2025-12-05 12:59:01 -05:00
Ryan C. Gordon 8be18741e1 examples/renderer/03-lines: Fix incorrect angle calculation rendering circle.
This fix was contributed by GitHub user hushangazar (thanks!).

Closes #14599.
2025-12-05 10:36:41 -05:00
Ozkan Sezer a882afafe5 fixed several -Wzero-as-null-pointer-constant warnings from gcc-15 2025-11-17 17:55:10 +03:00
Cameron CawleyandRyan C. Gordon 0bbbf3d43b Support resizable windows with most examples 2025-10-07 15:33:10 -04:00
Sam Lantinga bb0d6221c1 Use PNG files for tests and examples
These are much smaller than the previous BMP files

Fixes https://github.com/libsdl-org/SDL/issues/14159
2025-10-06 16:45:53 -07:00
Cameron CawleyandSam Lantinga d40b887775 Support loading BytePusher files from the command line 2025-10-06 11:19:46 -07:00
Cameron CawleyandSam Lantinga 2f9f939446 Use texture palettes for the BytePusher example 2025-10-06 09:50:06 -07:00
Ryan C. Gordon f71348f38b examples/misc/02-clipboard: Removed onmouseover-generating helper include. 2025-09-25 13:50:58 -04:00
Ryan C. Gordon 2f30f7a6bd examples/misc/02-clipboard: Patched to compile on Visual Studio. 2025-09-24 17:14:53 -04:00
Ryan C. Gordon 17d77f5fbd examples: Added misc/02-clipboard 2025-09-24 14:41:29 -04:00
Ryan C. Gordon 9ad04ff69e examples/misc/01-power/README.txt: fixed wording. 2025-09-16 14:37:51 -04:00
Ryan C. Gordon 1c9127ee4d examples: Preload onmouseover images, so it's more responsive to the user. 2025-09-16 14:22:39 -04:00
Ryan C. Gordon efb5829124 examples/misc/01-power/README.txt: Note that this is Chrome-only for now. 2025-09-16 13:37:58 -04:00
Ryan C. Gordon 9dbf2c7c0f examples/misc/01-power: Forgot to remove my code for building onmouseover. 2025-09-16 12:21:48 -04:00
Ryan C. Gordon f704661d22 examples: Added "misc" category for the web builds. 2025-09-16 12:08:04 -04:00
Ryan C. Gordon e341cc44cc examples: Added misc/01-power 2025-09-16 12:06:12 -04:00
Ryan C. Gordon 85ea2bfbf0 examples: Much, much easier way to generate thumbnail and onmouseover files. 2025-09-16 12:06:12 -04:00
Ryan C. Gordon c78818bd4b examples: When linking to directories, append a '/' to the URL.
This works without it, but generates an extra redirect on the web server to
the same a URL with the '/' appended, so we might as well supply it ourselves
and remove the extra roundtrip to the server.
2025-09-12 14:23:01 -04:00
Sam Lantinga 9d6fb509fe cliprect example: allow the clipping rectangle to extend outside the destination
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-09-07 19:48:05 -07:00
Ryan C. Gordon a7ee54f9a3 examples/README: Added a note about generating onmouseevent and thumbnails.
So I don't have to figure this out every time I write a new example.
2025-09-07 17:45:38 -04:00
Ryan C. Gordon 7c6ecb1cc4 examples: Reencoded input/02-joystick-events/onmouseover.webp, much smaller. 2025-09-07 17:37:26 -04:00
Ryan C. Gordon a5d790124c examples: Added input/04-gamepad-events 2025-09-07 14:06:58 -04:00
Ryan C. Gordon cfa31df2d5 examples/input/03-gamepad-polling: Added some README notes about the web. 2025-09-07 11:48:53 -04:00
Ryan C. Gordon bab4bb3817 examples: Fixed HTML output with multi-paragraph READMEs. 2025-09-07 11:48:53 -04:00
Ryan C. Gordon 79b881fc2e examples: Minor tweak to joystick examples' comments. 2025-09-06 23:03:46 -04:00