{"id":17422100,"url":"https://github.com/veeenu/hudhook","last_synced_at":"2025-04-04T21:10:33.146Z","repository":{"id":39410571,"uuid":"257079017","full_name":"veeenu/hudhook","owner":"veeenu","description":"A videogame overlay framework written in Rust, supporting DirectX and OpenGL","archived":false,"fork":false,"pushed_at":"2024-05-22T06:43:04.000Z","size":1598,"stargazers_count":152,"open_issues_count":17,"forks_count":25,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-05-22T07:43:51.887Z","etag":null,"topics":["imgui","overlays","rendering","reverse-engineering","rust","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/veeenu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-04-19T18:59:17.000Z","updated_at":"2024-07-11T08:54:00.393Z","dependencies_parsed_at":"2024-01-04T12:27:02.497Z","dependency_job_id":"5bc223e1-dce3-48f8-ab0f-627d31194a4a","html_url":"https://github.com/veeenu/hudhook","commit_stats":{"total_commits":115,"total_committers":7,"mean_commits":"16.428571428571427","dds":"0.11304347826086958","last_synced_commit":"d9c43e0bdb1ebae81ed04e9084cd4243bcd8debb"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veeenu%2Fhudhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veeenu%2Fhudhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veeenu%2Fhudhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veeenu%2Fhudhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veeenu","download_url":"https://codeload.github.com/veeenu/hudhook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249532,"owners_count":20908212,"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":["imgui","overlays","rendering","reverse-engineering","rust","windows"],"created_at":"2024-10-17T03:05:36.833Z","updated_at":"2025-04-04T21:10:33.122Z","avatar_url":"https://github.com/veeenu.png","language":"Rust","funding_links":["https://www.patreon.com/johndisandonato"],"categories":["Rust"],"sub_categories":[],"readme":"# hudhook\n\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/veeenu/hudhook/lint.yml)\n[![GitHub Release](https://img.shields.io/github/v/release/veeenu/hudhook)](https://github.com/veeenu/hudhook/releases)\n[![Crates.io Version](https://img.shields.io/crates/v/hudhook)](https://crates.io/crates/hudhook)\n[![GitHub License](https://img.shields.io/github/license/veeenu/hudhook)](https://github.com/veeenu/hudhook/blob/main/LICENSE)\n[![Discord](https://img.shields.io/discord/267623298647457802)](https://discord.gg/jhF3jTTCUs)\n[![book](https://img.shields.io/badge/docs-book-brightgreen)](https://veeenu.github.io/hudhook)\n[![rustdoc](https://img.shields.io/badge/docs-rustdoc-brightgreen)](https://veeenu.github.io/hudhook/rustdoc/hudhook)\n[![Patreon](https://img.shields.io/badge/Support_me-Patreon-orange)](https://www.patreon.com/johndisandonato)\n\nA Rust renderer hook library for building [Dear ImGui](https://github.com/ocornut/imgui) overlays.\n\nCurrently supports DirectX 9, DirectX 11, DirectX 12 and OpenGL 3. Runs on Windows and Wine/Proton.\n\n![hello](tests/hello.jpg)\n\n## Resources\n\n- [Tutorial book](https://veeenu.github.io/hudhook).\n- [API reference](https://veeenu.github.io/hudhook/rustdoc/hudhook).\n- [Architecture blog post](https://veeenu.github.io/blog/sekiro-practice-tool-architecture/) (a bit outdated).\n\n## Supporting the project\n\nIf you like `hudhook` and would like to support the project, you can do so via my [Patreon](https://www.patreon.com/johndisandonato).\n\nI'm glad the project works for you and I'm grateful for your support. Thank you!\n\n## Example\n\n```rust\n// src/lib.rs\nuse hudhook::*;\n\npub struct MyRenderLoop;\n\nimpl ImguiRenderLoop for MyRenderLoop {\n    fn render(\u0026mut self, ui: \u0026mut imgui::Ui) {\n        ui.window(\"My first render loop\")\n            .position([0., 0.], imgui::Condition::FirstUseEver)\n            .size([320., 200.], imgui::Condition::FirstUseEver)\n            .build(|| {\n                ui.text(\"Hello, hello!\");\n            });\n    }\n}\n\n{\n    // Use this if hooking into a DirectX 9 application.\n    use hudhook::hooks::dx9::ImguiDx9Hooks;\n    hudhook!(ImguiDx9Hooks, MyRenderLoop);\n}\n\n{\n    // Use this if hooking into a DirectX 11 application.\n    use hudhook::hooks::dx11::ImguiDx11Hooks;\n    hudhook!(ImguiDx11Hooks, MyRenderLoop);\n}\n\n{\n    // Use this if hooking into a DirectX 12 application.\n    use hudhook::hooks::dx12::ImguiDx12Hooks;\n    hudhook!(ImguiDx12Hooks, MyRenderLoop);\n}\n\n{\n    // Use this if hooking into an OpenGL 3 application.\n    use hudhook::hooks::opengl3::ImguiOpenGl3Hooks;\n    hudhook!(ImguiOpenGl3Hooks, MyRenderLoop);\n}\n```\n\n```rust\n// src/main.rs\nuse hudhook::inject::Process;\n\nfn main() {\n    let mut cur_exe = std::env::current_exe().unwrap();\n    cur_exe.push(\"..\");\n    cur_exe.push(\"libmyhook.dll\");\n\n    let cur_dll = cur_exe.canonicalize().unwrap();\n\n    Process::by_name(\"MyTargetApplication.exe\").unwrap().inject(cur_dll).unwrap();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveeenu%2Fhudhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveeenu%2Fhudhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveeenu%2Fhudhook/lists"}