{"id":20106731,"url":"https://github.com/ravbug/sdl3-sample","last_synced_at":"2025-04-04T13:05:19.843Z","repository":{"id":165025761,"uuid":"640418844","full_name":"Ravbug/sdl3-sample","owner":"Ravbug","description":"Minimal HowTo for building and using SDL3 on a variety of platforms, including mobile and web. Also includes SDL_mixer, SDL_Image, and SDL_ttf!","archived":false,"fork":false,"pushed_at":"2025-03-13T04:53:44.000Z","size":4869,"stargazers_count":184,"open_issues_count":2,"forks_count":23,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T12:09:17.978Z","etag":null,"topics":["android","cmake","emscripten","game-development","ios","linux","macos","sdl","sdl3","tvos","uwp","visionos","webassembly"],"latest_commit_sha":null,"homepage":"https://www.ravbug.com/sdl3-sample/","language":"CMake","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/Ravbug.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":"2023-05-14T02:50:31.000Z","updated_at":"2025-03-25T03:26:27.000Z","dependencies_parsed_at":"2024-01-01T19:30:39.691Z","dependency_job_id":"3431f125-b0bd-42ea-a3eb-7f16bfe1c8df","html_url":"https://github.com/Ravbug/sdl3-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ravbug%2Fsdl3-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ravbug%2Fsdl3-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ravbug%2Fsdl3-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ravbug%2Fsdl3-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ravbug","download_url":"https://codeload.github.com/Ravbug/sdl3-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182388,"owners_count":20897381,"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":["android","cmake","emscripten","game-development","ios","linux","macos","sdl","sdl3","tvos","uwp","visionos","webassembly"],"created_at":"2024-11-13T17:54:36.994Z","updated_at":"2025-04-04T13:05:19.816Z","avatar_url":"https://github.com/Ravbug.png","language":"CMake","readme":"## SDL3 App From Source Minimal Example\nThis is a minimal example for building and using SDL3, SDL_Mixer, SDL_Image, and SDL_ttf_ from source \nusing C++ and CMake. It also demonstrates setting up things like macOS/iOS\nbundles.\nSee [src/main.cpp](src/main.cpp) for the code. \n\n### Building And Running\nAre you a complete beginner? If so, read [this](https://github.com/Ravbug/sdl3-sample/wiki/Setting-up-your-computer)!\nOtherwise, install CMake and your favorite compiler, and follow the commands below:\n```sh\n# You need to clone with submodules, otherwise SDL will not download.\ngit clone https://github.com/Ravbug/sdl3-sample --depth=1 --recurse-submodules\ncd sdl3-sample\ncmake -S . -B build\n```\nYou can also use an init script inside [`config/`](config/). Then open the IDE project inside `build/` \n(If you had CMake generate one) and run!\n\n## Supported Platforms\nI have tested the following:\n| Platform | Architecture | Generator |\n| --- | --- | --- |\n| macOS | x86_64, arm64 | Xcode |\n| iOS | x86_64, arm64 | Xcode |\n| tvOS | x86_64, arm64 | Xcode |\n| visionOS* | arm64 | Xcode |\n| Windows | x86_64, arm64 | Visual Studio |\n| Linux | x86_64, arm64 | Ninja, Make |\n| Web* | wasm | Ninja, Make |\n| Android* | x86, x64, arm, arm64 | Ninja via Android Studio |\n\n*See further instructions in [`config/`](config/)\n\nNote: UWP support was [removed from SDL3](https://github.com/libsdl-org/SDL/pull/10731) during its development. For historical reasons, you can get a working UWP sample via this commit: [df270da](https://github.com/Ravbug/sdl3-sample/tree/df270daa8d6d48426e128e50c73357dfdf89afbf)\n\n## Updating SDL\nJust update the submodule:\n```sh\ncd SDL\ngit pull\ncd ..\n\ncd SDL_ttf\ngit pull\n```\nYou don't need to use a submodule, you can also copy the source in directly. This\nrepository uses a submodule to keep its size to a minimum.\n\n## Reporting issues\nIs something not working? Create an Issue or send a Pull Request on this repository!\n","funding_links":[],"categories":["Templates"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravbug%2Fsdl3-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fravbug%2Fsdl3-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravbug%2Fsdl3-sample/lists"}