{"id":29883516,"url":"https://github.com/leoraclet/sfml-imgui-template","last_synced_at":"2026-05-02T23:36:49.545Z","repository":{"id":305162438,"uuid":"1020834716","full_name":"leoraclet/sfml-imgui-template","owner":"leoraclet","description":"🧩 A template for C / C++ projects using SFML, OpenGL and Dear ImGUI","archived":false,"fork":false,"pushed_at":"2025-07-20T15:24:07.000Z","size":12649,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-12T23:46:58.031Z","etag":null,"topics":["c","cmake","cpp","dear-imgui","nix","opengl","sfml","template"],"latest_commit_sha":null,"homepage":"","language":"C++","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/leoraclet.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,"zenodo":null}},"created_at":"2025-07-16T13:16:21.000Z","updated_at":"2025-07-22T14:19:15.000Z","dependencies_parsed_at":"2025-07-18T18:11:41.266Z","dependency_job_id":null,"html_url":"https://github.com/leoraclet/sfml-imgui-template","commit_stats":null,"previous_names":["leoraclet/sfml-imgui-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leoraclet/sfml-imgui-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoraclet%2Fsfml-imgui-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoraclet%2Fsfml-imgui-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoraclet%2Fsfml-imgui-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoraclet%2Fsfml-imgui-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoraclet","download_url":"https://codeload.github.com/leoraclet/sfml-imgui-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoraclet%2Fsfml-imgui-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32553688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T22:28:24.418Z","status":"ssl_error","status_checked_at":"2026-05-02T22:28:14.225Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","cmake","cpp","dear-imgui","nix","opengl","sfml","template"],"created_at":"2025-07-31T14:00:41.342Z","updated_at":"2026-05-02T23:36:49.527Z","avatar_url":"https://github.com/leoraclet.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\u003cimg style=\"width: 400px;scale: 125%\" src=\"assets/misc/sfml-logo.png\"\u003e\u003c/div\u003e\n\u003ch1 align=\"center\"\u003eSFML + OpenGL + Dear ImGUI\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![license](https://img.shields.io/github/license/leoraclet/sfml-imgui-template)\n![language](https://img.shields.io/github/languages/top/leoraclet/sfml-imgui-template)\n![lastcommit](https://img.shields.io/github/last-commit/leoraclet/sfml-imgui-template)\n\u003cbr\u003e\n![Language](https://img.shields.io/badge/Language-C++-1d50de)\n![Libraries](https://img.shields.io/badge/Framework-SFML-fa8925)\n![Size](https://img.shields.io/badge/Size-91Mo-f12222)\n![Open Source](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)\n\n\u003c/div\u003e\n\n## Table of Contents\n- [Table of Contents](#table-of-contents)\n- [📖 About](#-about)\n- [✨ Features](#-features)\n- [📦 Structure](#-structure)\n- [📚 Libraries](#-libraries)\n- [🔧 Build](#-build)\n  - [Nix (recommended for MacOS and Linux)](#nix-recommended-for-macos-and-linux)\n  - [Windows (WSL)](#windows-wsl)\n- [🚀 Releases](#-releases)\n- [📜 License](#-license)\n\n\n## 📖 About\n\nThis is a simple template for C / C++ projects using SFML, OpenGL and Dear ImGUI under to hood to do\n3D and build GUI.\n\n## ✨ Features\n\n- 🔄 **Reproducible**: Built with Nix, this configuration can be effortlessly reproduced on other\n  machines, ensuring a consistent setup.\n\n- 📖 **Documented**: Most of the parts of my configuration files are commented and documented with\n  links and explanations if necessary\n\n## 📦 Structure\n\n- **Directories**\n\n  - [**`includes`**](./includes/) - Headers (`.hpp/.h`)\n  - [**`src`**](./src/) - Source files (`.cpp`)\n  - [**`libs`**](./libs/) - External libraries\n  - [**`assets`**](./assets/) - Images, Shaders and other Resources.\n  - [**`docs`**](./docs/) - Documentation\n  - [**`tests`**](./tests/) - Test files\n  - [**`build`**](./docs/) - CMake build files\n  - [**`bin`**](./docs/) - Shared libraries (if needed)\n\n- **Files**\n\n  - `flake.nix` - Environment configuration (based on [**dev-templates**](https://github.com/the-nix-way/dev-templates))\n  - `.envrc` - Used by **direnv** to load **Flakes**\n  - `flake.lock` - Used by **Flakes** to version packages\n  - `CMakeLists.txt` -  CMake configuration to build the project\n\n## 📚 Libraries\n\n- [**Dear ImGui**](https://github.com/ocornut/imgui) ~ Bloat-free Graphical User interface for C++\n  with minimal dependencies\n- [**SFML**](https://github.com/SFML/sfml) ~ Simple and Fast Multimedia Library\n- [**GLAD**](https://glad.dav1d.de/) ~ OpenGl loader\n- [**stb**](https://github.com/nothings/stb) ~ Stb single-file public domain libraries for C/C++\n- [**glm**](https://github.com/g-truc/glm) ~ OpenGL Mathematics\n\n\u003e [!NOTE]\n\u003e\n\u003e Looking at the source code of [SFML](https://github.com/SFML/SFML), it appears that **stb** and\n\u003e **GLAD** are already included (but I keep them here anyway).\n\n## 🔧 Build\n\n### Nix (recommended for MacOS and Linux)\n\n\u003e [!NOTE]\n\u003e\n\u003e I'm using NixOS as my day-to-day OS, and I have found that **Nix** with **Flakes** was the\n\u003e simplest and fastest way for me to setup C/C++ project with external libraries.\n\nTo build this project, first make sure you have [Nix](https://nixos.org/download/) installed as a\npackage manager and [direnv](https://direnv.net/) as a shell extension.\n\nThen, configure it to enable [Flakes](https://nixos.wiki/wiki/flakes) according to your setup.\n\nOnce you're ready, you can start by cloning this repo\n\n```bash\ngit clone https://github.com/leoraclet/sfml-imgui-template\ncd sfml-imgui-template\n```\n\n\u003e [!TIP]\n\u003e\n\u003e Now, **direnv** should load the environment when inside the project directory, if not, try\n\u003e ```bash\n\u003e direnv allow\n\u003e ```\n\nThe `flake.nix` file is where the project's environment is defined, and you can see in it that\n[CMake](https://cmake.org/) is part of the packages. So, if everything went well, you should be able to\nbuild the project like so\n\n```bash\ncmake -B build -S .\ncd build\ncmake --build .\n```\n\nThen, you can run the produced executable in `build` with\n\n```basb\n./example\n```\n\n### Windows (WSL)\n\n\u003e [!WARNING]\n\u003e\n\u003e I have **NOT** tested the building process on Windows, so you're basically on your own for this.\n\nThe best solution to build this project on Windows is to use\n[WSL](https://learn.microsoft.com/en-us/windows/wsl/install) and follow the\n[Nix](#nix-recommended-for-macos-and-linux) way in it.\n\nYou can start by installing nix [here](https://nixos.org/download/#nix-install-windows).\n\n## 🚀 Releases\n\n~~To run the program without editing the source code or building it yourself, go see the\n[**Releases**](https://github.com/leoraclet/sfml-imgui-template/releases).~~\n\n\u003e [!WARNING]\n\u003e\n\u003e This is template repo, so threre isn't releases for this one.\n\n## 📜 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoraclet%2Fsfml-imgui-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoraclet%2Fsfml-imgui-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoraclet%2Fsfml-imgui-template/lists"}