{"id":14990751,"url":"https://github.com/xyproto/sdl2-examples","last_synced_at":"2025-05-16T04:03:22.215Z","repository":{"id":17091315,"uuid":"19856569","full_name":"xyproto/sdl2-examples","owner":"xyproto","description":"SDL2 examples, for 25+ different programming languages","archived":false,"fork":false,"pushed_at":"2025-04-06T13:18:32.000Z","size":2715,"stargazers_count":343,"open_issues_count":0,"forks_count":41,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-05-16T04:02:12.823Z","etag":null,"topics":["c","cmake","common-lisp","cplusplus","crystal","csharp","d","dart","go","haskell","lisp","lua","nim","object-pascal","odin","pony","python","rust","sdl2","zig"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-05-16T13:00:07.000Z","updated_at":"2025-04-24T17:16:50.000Z","dependencies_parsed_at":"2024-01-16T11:01:23.073Z","dependency_job_id":"6e6d8022-bfa4-4d8d-ac0f-86f24cddc246","html_url":"https://github.com/xyproto/sdl2-examples","commit_stats":{"total_commits":487,"total_committers":13,"mean_commits":37.46153846153846,"dds":0.1540041067761807,"last_synced_commit":"a77bb5a34785e937a9199b2eb8120ea6896048d1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsdl2-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsdl2-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsdl2-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsdl2-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/sdl2-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464891,"owners_count":22075570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cmake","common-lisp","cplusplus","crystal","csharp","d","dart","go","haskell","lisp","lua","nim","object-pascal","odin","pony","python","rust","sdl2","zig"],"created_at":"2024-09-24T14:20:44.380Z","updated_at":"2025-05-16T04:03:21.882Z","avatar_url":"https://github.com/xyproto.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"SDL2 Examples\n=============\n\n[![sdl2-examples](https://github.com/xyproto/sdl2-examples/actions/workflows/main.yml/badge.svg)](https://github.com/xyproto/sdl2-examples/actions/workflows/main.yml)\n\n\"hello world\" for SDL2 for various programming languages.\n\nEach sample creates a window, displays an image, then waits two seconds and quits.\n\nAll executables should ideally build and run on Linux, macOS, Windows, BSD* and more, but they should at least work on Linux. Most subdirectories contains `README.md` files with more details, and a `Makefile` to have one way of building each sample.\n\nFor newer versions of macOS, the programs also appear to need an event loop for the window to show up, so I'm in the process of adding that to each example. The window just isn't shown if there is no event loop.\n\n\nRequirements\n------------\n\n* The SDL 2 library.\n* See the README.md file per sample for more information.\n\n\nRequirements for some of the languages\n--------------------------------------\n\n* C compiler that supports C89 (ANSI C), C99 or C11, for the C samples\n* A C++ compiler for the C++ sample\n* GCC 4.8 or later (or clang++) for the C++11 sample\n* Go 1.1 or later and the sdl2 go package (`go get github.com/veandco/go-sdl2/sdl`)\n* MRuby with SDL2 added to the configuration file\n* Nim 0.9.4 and sdl2 installed with babel\n* Python 2 or 3 and PySDL2\n* FPC 2.6.4 (or later than 2.4.0, must have Uint8, Uint16 and Uint32)\n* Lua (tested with Lua 5.3) and lua-sdl2\n* If `tcc` is used for compiling one of the C examples, make sure to add [`-DSDL_DISABLE_IMMINTRIN_H=1`](https://www.mail-archive.com/tinycc-devel@nongnu.org/msg08821.html).\n\n\nLanguages that are not added yet\n--------------------------------\n\n- [ ] Ada (but there is an `ada` branch if you wish to give it a spin. Please create a PR if it works on Arch Linux and/or the Linux CI test passes!).\n- [ ] C3 (but there is a `c3` branch with \"Hello World\" in C3).\n- [ ] Fortran\n- [ ] Scheme\n\nPull requests are welcome.\n\n\nGeneral information\n----------------------\n\n* License: BSD-3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fsdl2-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Fsdl2-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fsdl2-examples/lists"}