{"id":15866390,"url":"https://github.com/squidmin/sfml-imgui-labs","last_synced_at":"2025-04-01T21:20:19.261Z","repository":{"id":192925517,"uuid":"687115340","full_name":"squidmin/sfml-imgui-labs","owner":"squidmin","description":"ImGui + SFML sandbox","archived":false,"fork":false,"pushed_at":"2024-03-04T01:20:33.000Z","size":25580,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T13:54:12.620Z","etag":null,"topics":["cmake","cpp","imgui","imgui-sfml","imgui-sfml-library","sfml"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squidmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-09-04T16:41:58.000Z","updated_at":"2024-01-16T00:02:49.000Z","dependencies_parsed_at":"2024-03-04T02:38:54.177Z","dependency_job_id":null,"html_url":"https://github.com/squidmin/sfml-imgui-labs","commit_stats":null,"previous_names":["squidmin/sfml-imgui-labs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fsfml-imgui-labs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fsfml-imgui-labs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fsfml-imgui-labs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fsfml-imgui-labs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squidmin","download_url":"https://codeload.github.com/squidmin/sfml-imgui-labs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709921,"owners_count":20821301,"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":["cmake","cpp","imgui","imgui-sfml","imgui-sfml-library","sfml"],"created_at":"2024-10-05T23:20:32.929Z","updated_at":"2025-04-01T21:20:19.238Z","avatar_url":"https://github.com/squidmin.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sfml-imgui-labs\n\nSFML / Dear ImGui / ImGui-SFML sandbox project.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/1285136/119359595-76e74280-bcb2-11eb-9ad5-1e69795e5696.png\" width=\"900px\"\u003e\n\n### Prerequisites\n\n- `ninja`\n- `cmake`\n- c++ compiler (`clang`, `gcc`, etc.)\n\n### 1. Installing and Setting Up Ninja\n\nOn macOS, you can use the Homebrew package manager:\n\n```shell\nbrew install ninja\n```\n\nIf you already have Ninja installed, ensure it's available in your `PATH`. You can test this by running:\n\n```shell\nninja --version\n```\n\nIf this returns a version number, it means Ninja is correctly installed and available in the `PATH`.\n\n---\n\n### 2. C++ Compiler\n\nEnsure you have a C++ compiler installed. On macOS, you typically use Clang, which comes with Xcode. If you haven't already, install Xcode and the Xcode Command Line Tools:\n\n\u003cdetails\u003e\n\u003csummary\u003eExpand\u003c/summary\u003e\n\n```shell\nxcode-select --install\n```\n\n\u003c/details\u003e\n\n---\n\n### 3. _**Optional**_: Fetching dependencies\n\nThis project comes with the dependencies pre-installed.\nIf necessary, the dependencies can be re-installed using the below commands:\n\n\u003cdetails\u003e\n\u003csummary\u003eExpand\u003c/summary\u003e\n\n```shell\nrm -rf dependencies\nmkdir dependencies \u0026\u0026 cd dependencies\n```\n\n```shell\ngit submodule add https://github.com/SFML/SFML.git dependencies/sfml\ngit submodule add https://github.com/eliasdaler/imgui-sfml.git dependencies/imgui-sfml\n```\n\n\u003c/details\u003e\n\n---\n\n### 4. Building\n\n```shell\nrm -rf cmake-build-debug\nmkdir cmake-build-debug \u0026\u0026 cd cmake-build-debug\n```\n\nTo specify the compiler for CMake, you can set the `CMAKE_CXX_COMPILER` variable:\n\n```shell\ncmake -DCMAKE_CXX_COMPILER=/usr/bin/c++ ..\n```\n\nReplace `/usr/bin/c++` with the path to your preferred C++ compiler if it's different.\n\n\u003cimg src=\"./docs/img/sfml-imgui-build_1.gif\" width=\"800px\"\u003e\n\nIt will take some time to fetch SFML. Afterwards, the build will finish with similar output as shown below:\n\n\u003cimg src=\"./docs/img/sfml-imgui-build_2.gif\" width=\"800px\"\u003e\n\n```sh\ncmake --build .\n./src/square_grid_2\n```\n\n\u003cimg src=\"./docs/img/cmake-build.gif\" width=\"800px\"\u003e\n\n---\n\n## References\n\n- **SFML documentation**: https://www.sfml-dev.org/documentation/2.6.0/\n- **ImGui documentation**: https://imgui-test.readthedocs.io/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquidmin%2Fsfml-imgui-labs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquidmin%2Fsfml-imgui-labs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquidmin%2Fsfml-imgui-labs/lists"}