{"id":20684237,"url":"https://github.com/chrispritchard/fsharp-gamecore-imgui","last_synced_at":"2026-06-04T17:31:14.376Z","repository":{"id":97697272,"uuid":"164579948","full_name":"ChrisPritchard/fsharp-gamecore-imgui","owner":"ChrisPritchard","description":"ImGui wrapper for use with Fsharp.GameCore","archived":false,"fork":false,"pushed_at":"2025-10-05T00:41:29.000Z","size":220,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-05T00:59:47.533Z","etag":null,"topics":["2d","fsharp","gamedev","imgui","monogame"],"latest_commit_sha":null,"homepage":"","language":"F#","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/ChrisPritchard.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":"2019-01-08T06:31:31.000Z","updated_at":"2025-10-05T00:41:32.000Z","dependencies_parsed_at":"2023-06-02T19:00:18.065Z","dependency_job_id":null,"html_url":"https://github.com/ChrisPritchard/fsharp-gamecore-imgui","commit_stats":null,"previous_names":["chrispritchard/fsharp-gamecore-ui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChrisPritchard/fsharp-gamecore-imgui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisPritchard%2Ffsharp-gamecore-imgui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisPritchard%2Ffsharp-gamecore-imgui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisPritchard%2Ffsharp-gamecore-imgui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisPritchard%2Ffsharp-gamecore-imgui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChrisPritchard","download_url":"https://codeload.github.com/ChrisPritchard/fsharp-gamecore-imgui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisPritchard%2Ffsharp-gamecore-imgui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33916319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["2d","fsharp","gamedev","imgui","monogame"],"created_at":"2024-11-16T22:20:01.381Z","updated_at":"2026-06-04T17:31:14.352Z","avatar_url":"https://github.com/ChrisPritchard.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fsharp-gamecore-imgui\n\nIntegrates ImGui.NET into FSharp-Gamecore. [ImGui.NET](https://github.com/mellinoe/ImGui.NET) is an excellent project by [mellinoe](https://github.com/mellinoe) that wraps [Dear ImGui](https://github.com/ocornut/imgui) by [ocornut](https://github.com/ocornut)\n\nThis project provides a custom game loop class (easily runnable via the game runner method [runImGuiGame](https://github.com/ChrisPritchard/fsharp-gamecore-imgui/blob/master/src/GameRunner.fs#L7)) that includes an integrated XNA/Monogame renderer for ImGui invocations.\n\nIt requires a getUI method, given the last game state model and expected to return a list of `uimodel -\u003e uimodel` functions that can be used to invoke ImGui methods (e.g. `ImGui.Text \"hello world\"`), optionally derived from a custom UI model and optionally updating the same model, which is then passed as an additional argument to the standard fsharp-gamecore advance model function.\n\nIn this way, a UI can be generated based on the game's last model state, and can provide a state for the next game state's construction.\n\nAvailable on Nuget at: \u003chttps://www.nuget.org/packages/fsharp-gamecore-imgui/0.0.2\u003e\n\n## Samples\n\nPlease see the the sample project for an example of use. There are a set of helpful wrapper methods in the Wrappers module, that provide functional invocation (and occasionally hide some nasty use of pointers) of common ImGui functions, e.g. Text, Rows, Inputs and Images.\n\nFor further examples of how ImGui can be used please see:\n\n- The ImGui.NET sample XNA project's [sample app](https://github.com/mellinoe/ImGui.NET/blob/master/src/ImGui.NET.SampleProgram.XNA/SampleGame.cs#L75)\n- The Dear ImGui's [demo source code](https://github.com/ocornut/imgui/blob/master/imgui_demo.cpp) (generally trivial to translate the C to the equivalent F#, thanks to mellinoe's excellent wrapping library)\n\n## Use case\n\nDear ImGui is predominantly used to construct tooling, IDEs and similar - the base library does not provide the supreme level of customisation required for a fully bespoke game. \n\nHowever, a good use case (which is what I use it for) is to create a mock UI while developing, to be swapped out with a bespoke UI at a later date. Dear ImGui/ImGui.NET is good for rapid prototyping in this fashin.\n\nThe UI design philosophy that Dear ImGui implements is an excellent fit for both Monogame/XNA/Gameloop centric games, and for F# in my opinion.\n\n## License\n\nProvided under **MIT**. The default font for ImGui (Proggy, also under MIT) has been overridden by personal preference with Karla regular, one of the fonts shipped with Dear ImGui itself. Karla is under the **SIL Open Font License**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrispritchard%2Ffsharp-gamecore-imgui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrispritchard%2Ffsharp-gamecore-imgui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrispritchard%2Ffsharp-gamecore-imgui/lists"}