{"id":20987178,"url":"https://github.com/haxpor/sdl2-samples","last_synced_at":"2026-04-21T16:31:13.403Z","repository":{"id":149553120,"uuid":"151880296","full_name":"haxpor/sdl2-samples","owner":"haxpor","description":"SDL2 sample code","archived":false,"fork":false,"pushed_at":"2018-10-18T23:14:13.000Z","size":4073,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T09:10:59.824Z","etag":null,"topics":["c","samples","sdl2"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haxpor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-10-06T20:47:02.000Z","updated_at":"2020-07-05T22:06:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"602edb8c-1d7b-4c30-9245-781deabd865a","html_url":"https://github.com/haxpor/sdl2-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haxpor/sdl2-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fsdl2-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fsdl2-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fsdl2-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fsdl2-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haxpor","download_url":"https://codeload.github.com/haxpor/sdl2-samples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fsdl2-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32099938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","samples","sdl2"],"created_at":"2024-11-19T06:16:14.253Z","updated_at":"2026-04-21T16:31:13.376Z","avatar_url":"https://github.com/haxpor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDL2 Sample Code\n\nSample code along the way of finishing [sdl2-manpage](https://github.com/haxpor/sdl2-manpage)\n\n* Compile and build executable with `gcc -lsdl2 \u003csource-file.c\u003e`\n* Clean your local working directory with `make clean`\n\n# Android\n\nTo test on android\n\nWe have two android project for version 2.0.8 and 2.0.9 (development snapshot as of 1 Oct 2018). Choose one that is suitable for your sample code.\n\n* symlink your SDL2 source code directory to `android-project/app/jni` - do this once\n* copy testing `.c` source file into `android-project/app/jni/src`\n* modify `Android.mk` in `android-project/app/jni/src` to include testing source file, see comment in the file\n* execute `./gradlew installDebug` to build and install the app on your Android device\n\nTo test on ios\n\n* remove broken of included sub-project as seen in project navigation pane\n* add `\u003cyour SDL source directory\u003e/Xcode-iOS/SDL/SDL.xcodeproj` as a sub-project\n* add more sdl2 sample source code into `src` directory by right click and add files in Xcode\n* set \"Header Search Path\" in Build Settings for your target properly, it should be aligned with headers as referenced by SDL project as you recently added\n* create a new target if needed to run each new sample as you added\n\n\u003e There is rectangles sample already added there, so you can see for example.\n\nYou can read more about how to manually come up with this iOS sample project from my blog [here](https://blog.wasin.io/2018/10/19/build-sdl2-application-on-ios.html).\n\n# License\nMIT, Wasin Thonkaew\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxpor%2Fsdl2-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaxpor%2Fsdl2-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxpor%2Fsdl2-samples/lists"}