Commit Graph

31 Commits

Author SHA1 Message Date
Ryan C. Gordon afabccd4d0
examples: Split up description text by line breaks. 2024-07-30 15:37:46 -04:00
Ozkan Sezer b24bfc2c98 fix RandFunc typedef 2024-07-30 21:15:04 +03:00
Semphris 6aca728056 Fix examples description CSS 2024-07-30 13:46:34 -04:00
Ryan C. Gordon 3b5c3d6cc8
examples/snake: Actually fixed build this time. 2024-07-30 13:43:03 -04:00
Ryan C. Gordon bc8b768b9a
examples/snake: Fix up build. 2024-07-30 13:40:01 -04:00
Dylam De La Torre dbb4e05c28 Add "Snake" game example 2024-07-30 13:26:01 -04:00
Ryan C. Gordon 69a2d7960c
examples: first shot at description text at top of page. Not working yet. 2024-07-30 13:18:58 -04:00
Ryan C. Gordon 6a25e94472
examples: Print a description of the program to the console on startup. 2024-07-30 12:23:07 -04:00
Ryan C. Gordon 900213e16e
examples: Pop up the console on new output for three seconds if hidden. 2024-07-30 09:45:06 -04:00
Ryan C. Gordon 6559cfb143
examples: make SDL_Log work with the Emscripten console.
Fixes #10410.
2024-07-30 08:59:52 -04:00
Ryan C. Gordon 89cc526a67
examples: Fix out-of-tree builds. 2024-07-30 00:13:32 -04:00
Semphris 949765a3b0 Stylize examples/template.html 2024-07-29 23:41:43 -04:00
Ryan C. Gordon 53022aeb5e
examples: Use the existing CMake infrastructure instead of rolling our own. 2024-07-25 11:56:19 -04:00
Anonymous Maarten 9826f73230 cmake: fix copying of resource files on uwp 2024-07-25 16:01:57 +02:00
Anonymous Maarten 9f9ebcd40a cmake: fix copying of example resource files on desktop, ps2 and psp 2024-07-25 14:54:20 +02:00
Ryan C. Gordon 195c26a50a
examples: Add a way to add datafiles to an example, and add audio/load-wav 2024-07-24 17:30:55 -04:00
Ryan C. Gordon bd65d154d5
examples: Added audio/simple-playback-callback. 2024-07-23 17:52:42 -04:00
Ryan C. Gordon ea137cfbaf
examples: Fix window titles. 2024-07-23 17:52:24 -04:00
Ryan C. Gordon 35a1cf910a
examples/audio/simple-playback: Add a description to the example. 2024-07-23 17:33:33 -04:00
Ryan C. Gordon f5f44de155
examples: Add audio/01-simple-playback. 2024-07-23 14:52:31 -04:00
Ryan C. Gordon 5216aea31d
examples: Explicitly call SDL_Init(). 2024-07-23 14:52:30 -04:00
Sam Lantinga ff7a60db85 Minor fixes to the primitive example
* The random number generator is automatically seeded, no need for SDL_srand()
* Draw the points first, so they don't overlap the other primitives and look like broken line drawing
2024-07-23 08:34:15 -07:00
Ryan C. Gordon 4d8b938969
examples: Added renderer/primitives example. 2024-07-23 10:37:14 -04:00
Ryan C. Gordon 266744af03
examples: Number examples, so they are presented in a specific order. 2024-07-23 10:12:53 -04:00
Ryan C. Gordon 23cf09163e
examples: More n3ds build fixes. 2024-07-23 01:35:15 -04:00
Ryan C. Gordon 3671497ea1
examples: Maybe fix n3ds builds. 2024-07-23 01:28:19 -04:00
Ryan C. Gordon d2e2b9bdc9
examples: Maybe fix Android builds. 2024-07-23 01:25:29 -04:00
Ryan C. Gordon d8d7212efd
examples: Maybe fix UWP builds. 2024-07-23 01:22:19 -04:00
Ryan C. Gordon 16535b7ee2
examples: Add CMake glue to optionally build examples, as we do for the tests.
In fact, most of the CMake code was stolen from the test directory.
2024-07-23 00:58:57 -04:00
Ryan C. Gordon 2038620717
examples/README: fixed typo. 2024-07-22 23:41:16 -04:00
Ryan C. Gordon 5339b4458d
examples: Added initial examples infrastructure. 2024-07-22 22:39:09 -04:00