{"id":18430014,"url":"https://github.com/kevinw/raylib-odin","last_synced_at":"2025-04-07T17:33:22.855Z","repository":{"id":47265717,"uuid":"176742151","full_name":"kevinw/raylib-odin","owner":"kevinw","description":"Odin bindings for the raylib gamedev library","archived":true,"fork":false,"pushed_at":"2021-09-06T05:40:23.000Z","size":3655,"stargazers_count":39,"open_issues_count":9,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-02T06:27:19.496Z","etag":null,"topics":["bindings","odin-programming-language","raylib"],"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/kevinw.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":"2019-03-20T13:40:00.000Z","updated_at":"2025-02-04T18:24:21.000Z","dependencies_parsed_at":"2022-09-07T07:41:03.598Z","dependency_job_id":null,"html_url":"https://github.com/kevinw/raylib-odin","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/kevinw%2Fraylib-odin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinw%2Fraylib-odin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinw%2Fraylib-odin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinw%2Fraylib-odin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinw","download_url":"https://codeload.github.com/kevinw/raylib-odin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247698037,"owners_count":20981290,"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":["bindings","odin-programming-language","raylib"],"created_at":"2024-11-06T05:19:20.115Z","updated_at":"2025-04-07T17:33:21.745Z","avatar_url":"https://github.com/kevinw.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# odin-raylib\r\n\r\n## !!\r\n\r\n## NEWER AND MAINTAINED REPO HERE: [ftommasi/raylib-odin](https://github.com/ftommasi/raylib-odin)\r\n\r\n## !!\r\n\r\nBindings for [raylib](http://www.raylib.com) 3.0.0, a small C gamedev library, for the [odin programming language](https://odin.handmade.network/).\r\n\r\nThese are usable, but in a pre-alpha state and definitely a work in progress.\r\n\r\nfrom [Kevin Watters](https://kev.town)\r\n\r\n## Prerequisites\r\n\r\n- Windows 10 (for now)\r\n- Visual Studio 2017\r\n- A command-line prompt opened with the \"x64 Native Tools Command Prompt for VS 2017\" shortcut\r\n- `odin` on your PATH (built from odin's `master` branch is good)\r\n\r\n## Running the examples\r\n\r\n### `examples/simple_demo`\r\n\r\nTo run a simple demo:\r\n\r\n```\r\nodin run examples/simple_demo\r\n```\r\n\r\nYou should see this:\r\n\r\n![a screenshot of a simple demo](resources/screenshots/example_simple_demo.png)\r\n\r\n### `examples/live_reload_demo`\r\n\r\nTo run the live reload demo:\r\n\r\n```\r\nscripts\\run_live_reload_demo\r\n```\r\n\r\nYou should see the demo appear. It runs a background thread watching for changes in the source directory. When a change happens, it will rebuild the `bin/game.dll` file--which will then get automatically reloaded by the host process.\r\n\r\n![a screenshot of the live reload demo](resources/screenshots/example_live_reload.png)\r\n\r\nTry editing some of the values in `examples/live_reload_demo/game.odin` and saving the file to see the changes instantly.\r\n\r\n![live reload example](resources/live-reload.gif)\r\n\r\n### `examples/bunnymark`\r\n\r\n```\r\nodin run examples/bunnymark\r\n```\r\n\r\n![a screenshot of the bunnymark demo](resources/screenshots/example_bunnymark.png)\r\n\r\n### `examples/physac`\r\n\r\n```\r\nodin run examples/physac\r\n```\r\n\r\n![a screenshot of the physac demo](resources/screenshots/physac.png)\r\n\r\n## Modules\r\n\r\nBindings for `raygui` and `raymath` are in an alpha state. See `examples/gui` and `examples/example_raymath`.\r\n\r\n## Bindings\r\n\r\nTo rebuild the bindings to raylib, make sure you have raylib checked out into the directory above raylib-odin, and run `scripts\\generate_raylib_bindings.bat`.\r\n\r\n## TODO\r\n\r\n- fix up bindgen code so that raylib.h doesn't need to be hand-tweaked\r\n- make everything work on OSX and Linux\r\n\r\n## Acknowledgements\r\n\r\n- Thanks to [@TheElkantor](https://twitter.com/theelkantor) for their article [\"How to add hot reload when using raylib\"](https://www.developing-stuff.com/how-to-add-hot-reload-when-using-raylib/) - for pointing out that passing function pointers to a plugin was probably the easiest way to get a live reload harness going.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinw%2Fraylib-odin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinw%2Fraylib-odin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinw%2Fraylib-odin/lists"}