{"id":20987228,"url":"https://github.com/haxpor/lazyfoo-sdl2c","last_synced_at":"2025-05-14T17:33:48.464Z","repository":{"id":49811115,"uuid":"144977629","full_name":"haxpor/lazyfoo-sdl2c","owner":"haxpor","description":"lazyfoo SDL2 tutorial in C with improvement and modifications.","archived":false,"fork":false,"pushed_at":"2018-12-14T19:54:17.000Z","size":6000,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-01T02:39:35.300Z","etag":null,"topics":["c","sdl2"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-16T11:16:47.000Z","updated_at":"2022-11-19T05:43:59.000Z","dependencies_parsed_at":"2022-09-03T19:00:29.628Z","dependency_job_id":null,"html_url":"https://github.com/haxpor/lazyfoo-sdl2c","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Flazyfoo-sdl2c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Flazyfoo-sdl2c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Flazyfoo-sdl2c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Flazyfoo-sdl2c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haxpor","download_url":"https://codeload.github.com/haxpor/lazyfoo-sdl2c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225303952,"owners_count":17453037,"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","sdl2"],"created_at":"2024-11-19T06:16:21.736Z","updated_at":"2024-11-19T06:16:22.441Z","avatar_url":"https://github.com/haxpor.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lazyfoo-sdl2c\nSource code studying Lazy Foo's SDL2 tutorial in C.\n\nEach tutroial has code ported to C based on `-std=c99`.\n\n# How to Build\n\nGo to each sample directory, then execute `make` to compile and build each one.  \nExecute `make clean` to clean built files.\n\nOr\n\nJust go to root directory, then execute `make` or `make clean` to build or clean respectively for all samples.\n\n# Credits Author\n\nThis project is based on the work of [Lazyfoo](http://lazyfoo.net/tutorials/SDL/).\nSee _License_ for more information about rights.\n\n# Note\n\n* The C port is not 100% similar to the original. May be slightly different, or more customization for learning purpose. So watch out and look at the code!\n* Use `template.c`, and `template.gitignore` files to kickstart each sample.\n* `LTexture.c`, `LTexture.h`, `LButton.c`, `LButton.h`, `common.c`, `common.h` are gradually improved, refactored, and added more functionality on top from one sample to another. If you need a more updated version of it, look at the most recent sample. You might have to look into multiple of samples to gather all reuseable systems as certain samples don't require to use certain systems. Anyway, when this repository is done, I will separate all those reusable systems (`.c`, and `.h`) files out into separate place.\n* Each individual sample is self-contained.\n* Use `createsample.sh` to kickstart creating a new sample directory based on existing one. See comment in the source file for detail how to use.\n\n\u003e Tutorial of 52-55 is put on hold (those are for mobile).\n\n# Credits\n\n* Minecraft font by Craftron Gaming on dafont.com - [link](https://www.dafont.com/minecraft.font)\n* 8bit Wonder font by Joiro Hatgaya on dafont.com - [link](https://www.dafont.com/8bit-wonder.font)\n\n# License\n\n* As stated in http://lazyfoo.net/contact.php, the rights of this derived works (code and assets) still belong to Lazyfoo otherwise noted.\n  [LGPL](https://www.gnu.org/copyleft/lesser.html), LazyFoo, original author this repository based on.\n\n* The code that's not based on original work is belong to me (Wasin Thonkaew) as [MIT](https://github.com/haxpor/lazyfoo-sdl2c/blob/master/LICENSE).\n* Other additional assets are belong to what is noted in README.md file of corresponding sample.\n\nIf you have any enquiry about modifying or extending the project, please contact LazyFoo [here](http://lazyfoo.net/contact.php).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxpor%2Flazyfoo-sdl2c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaxpor%2Flazyfoo-sdl2c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxpor%2Flazyfoo-sdl2c/lists"}