{"id":25443013,"url":"https://github.com/edwardgushchin/sdl3-cs","last_synced_at":"2025-10-07T12:43:10.291Z","repository":{"id":247049190,"uuid":"824888238","full_name":"edwardgushchin/SDL3-CS","owner":"edwardgushchin","description":"This is SDL3#, a C# wrapper for SDL3.","archived":false,"fork":false,"pushed_at":"2025-04-08T21:46:47.000Z","size":55994,"stargazers_count":40,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T02:19:13.448Z","etag":null,"topics":["csharp","dotnet","gamedev","open-source","sdl","sdl3","wrapper"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edwardgushchin.png","metadata":{"files":{"readme":"README-nuget.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-07-06T08:19:38.000Z","updated_at":"2025-04-09T18:29:48.000Z","dependencies_parsed_at":"2025-01-14T14:37:51.438Z","dependency_job_id":"6003972c-347a-4024-aca9-98c7b3a3ca90","html_url":"https://github.com/edwardgushchin/SDL3-CS","commit_stats":null,"previous_names":["edwardgushchin/sdl3-cs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardgushchin%2FSDL3-CS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardgushchin%2FSDL3-CS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardgushchin%2FSDL3-CS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardgushchin%2FSDL3-CS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edwardgushchin","download_url":"https://codeload.github.com/edwardgushchin/SDL3-CS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142906,"owners_count":21054672,"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":["csharp","dotnet","gamedev","open-source","sdl","sdl3","wrapper"],"created_at":"2025-02-17T14:16:37.165Z","updated_at":"2025-10-07T12:43:10.286Z","avatar_url":"https://github.com/edwardgushchin.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🚀 About\n\nThis is SDL3#, a C# wrapper for SDL3.\n\n## 📚 Documentation\n\nFor more information about SDL3, visit the [SDL wiki](https://wiki.libsdl.org/SDL3/FrontPage).\n\n## 📝 Installation\n\n```\ngit clone https://github.com/edwardgushchin/SDL3-CS\ncd SDL3-CS\ndotnet build -c Release\n```\n\nor\n\n```\ndotnet add package SDL3-CS\n```\n\nOptional:\n\n```\ndotnet add package SDL3-CS.Native\ndotnet add package SDL3-CS.Native.Image\ndotnet add package SDL3-CS.Native.TTF\ndotnet add package SDL3-CS.Native.Mixer\n```\n\n## 🎓 Examples\n\n```C#\nusing SDL3;\n\nnamespace Create_Window;\n\ninternal static class Program\n{\n    [STAThread]\n    private static void Main()\n    {\n        if (!SDL.Init(SDL.InitFlags.Video))\n        {\n            SDL.LogError(SDL.LogCategory.System, $\"SDL could not initialize: {SDL.GetError()}\");\n            return;\n        }\n\n        if (!SDL.CreateWindowAndRenderer(\"SDL3 Create Window\", 800, 600, 0, out var window, out var renderer))\n        {\n            SDL.LogError(SDL.LogCategory.Application, $\"Error creating window and rendering: {SDL.GetError()}\");\n            return;\n        }\n\n        SDL.SetRenderDrawColor(renderer, 100, 149, 237, 0);\n\n        var loop = true;\n\n        while (loop)\n        {\n\n            while (SDL.PollEvent(out var e))\n            {\n                if ((SDL.EventType)e.Type == SDL.EventType.Quit)\n                {\n                    loop = false;\n                }\n            }\n\n            SDL.RenderClear(renderer);\n            SDL.RenderPresent(renderer);\n        }\n\n        SDL.DestroyRenderer(renderer);\n        SDL.DestroyWindow(window);\n\n        SDL.Quit();\n    }\n}\n```\n\nMore examples can be found [here](https://github.com/edwardgushchin/SDL3-CS/tree/master/SDL3-CS.Examples).\n\n## ✅ Readiness\n\n| **Library**                               | **Stage**                                             |\n|-------------------------------------------|-------------------------------------------------------|\n| [SDL3](SDL3-CS/SDL)                       | ![Ready](https://img.shields.io/badge/Ready-008000)   |\n| [SDL_image](SDL3-CS/Image)                | ![Ready](https://img.shields.io/badge/Ready-008000)   |\n| [SDL_mixer](SDL3-CS/Mixer)                | ![Ready](https://img.shields.io/badge/Ready-008000)   |\n| [SDL_tff](SDL3-CS/TTF)                    | ![Ready](https://img.shields.io/badge/Ready-008000)   |\n| [SDL_shadercross](SDL3-CS/TTFShaderCross) | ![Ready](https://img.shields.io/badge/Ready-008000)   |\n\n\n## 🤝 Feedback and Contributions\n\nDo you have an idea or found a bug? Please open an [issue](https://github.com/edwardgushchin/SDL3-CS/issues) or start a [discussion](https://github.com/edwardgushchin/SDL3-CS/discussions).\n\nPlease note we have a code of conduct, please follow it in all your interactions with the project.\n\nIf you have any feedback, please reach out to us at [eduardgushchin@yandex.ru](mailto://eduardgushchin@yandex.ru).\n\nWe also have a [chat](https://t.me/sdl3cs) in Telegram, where I am ready to answer any of your questions.\n\n## 💻 Authors\n\n- Eduard Gushchin - Initial work - [edwardgushchin](https://github.com/edwardgushchin)\n\nSee also the list of [contributors](https://github.com/edwardgushchin/SDL3-CS/graphs/contributors) who participated in this project.\n\n## 📃 License\n\nSDL3 and SDL3# are released under the zlib license. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwardgushchin%2Fsdl3-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwardgushchin%2Fsdl3-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwardgushchin%2Fsdl3-cs/lists"}