{"id":25752160,"url":"https://github.com/alex11br/c-sdl-sample","last_synced_at":"2025-07-22T16:02:20.402Z","repository":{"id":111358244,"uuid":"563091433","full_name":"ALEX11BR/c-sdl-sample","owner":"ALEX11BR","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-10T06:22:18.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-11T03:14:03.250Z","etag":null,"topics":["c","cmake","emscripten","emscripten-game","makefile","sample","sdl2","sdl2-image","template","vcpkg"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ALEX11BR.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}},"created_at":"2022-11-07T22:14:06.000Z","updated_at":"2024-09-10T06:46:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"e61c8a10-2ce2-49e6-b4f4-6d8aebf216f0","html_url":"https://github.com/ALEX11BR/c-sdl-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX11BR%2Fc-sdl-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX11BR%2Fc-sdl-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX11BR%2Fc-sdl-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX11BR%2Fc-sdl-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ALEX11BR","download_url":"https://codeload.github.com/ALEX11BR/c-sdl-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240869579,"owners_count":19870810,"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","emscripten","emscripten-game","makefile","sample","sdl2","sdl2-image","template","vcpkg"],"created_at":"2025-02-26T14:27:02.984Z","updated_at":"2025-02-26T14:27:04.296Z","avatar_url":"https://github.com/ALEX11BR.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A sample C SDL2 application\n\nThis is a sample SDL2 application that can compile to many targets (web and native) and has set up some necessary things.\n\nThe `assets` folder has, well, assets; the source code sits in the root.\n\nWe have setup a build system with CMake (and optionally vcpkg) for the app's compilation:\n- Compile with `cmake --preset debug ; cmake --build --preset debug` for Linux or Windows-MinGW-w64 (make sure you have installed SDL2, SDL2_image, pkg-config).\n- Compile with `vcpkg install ; cmake --preset debug-vcpkg ; cmake --build --preset debug-vcpkg` for Windows-VisualStudio (probably other operating systems too, I haven't tested) with vcpkg.\n- Compile with `docker run --rm -v $(pwd):/src docker.io/emscripten/emsdk bash -c 'cmake --preset emscripten ; cmake --build --preset emscripten'` for web using the emscripten docker container.\n\nOutputs are in `out/build/\u003cONE_OF_THE_PRESETS\u003e`.\n\nWe also have a `Makefile` build system for Linux, Emscripten or Windows-MinGW-w64.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex11br%2Fc-sdl-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex11br%2Fc-sdl-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex11br%2Fc-sdl-sample/lists"}