███████ ██████ ███ ███ ██ ████████ ██████ ███ ███ ██████ ██ ████ ████████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██████ ██ ███ ██ ██ ██ █████ ██ ███ ██ ██████ ██ ██████ ██ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██ ██ ██ ██████ ██ ██████ ██ ██ ██ ██████ ██ ██ ██ ██████
◎ A Base Project Setup for SFML/ImGui
C++ Rendering/Graphics project template with SFML and Dear ImGUI.
Table of Contents
This repository template should allow for a fast and hassle-free kick start of your next SFML project using CMake. Thanks to GitHub's nature of templates, you can fork this repository without inheriting its Git history.
The template starts out very basic, but might receive additional features over time:
- Basic CMake script to build your project and link SFML on any operating system
- Basic GitHub Actions script for all major platforms
- Prototyping
- Getting started with game programming
- Getting started with graphics programming
- Sources, headers and mains separated in distinct folders
- Use of modern CMake for much easier compiling
- Continuous integration via GitHub Actions
This project leverages several modern libraries and tools to streamline development, building, and documentation.
| Library | Purpose | Details |
|---|---|---|
| ImGui | Graphical User Interface | Immediate Mode Graphical User Interface |
| SFML | Graphic/Rendering Library | Used for Graphic Rendering |
| ImGui-SFML | ImGui SFML Binding Library | Bind ImGui and SFML |
| Compiler | Platforms | Minimum Version |
|---|---|---|
| Clang | Linux/Windows/MacOs | 10 |
| MSVC | Windows Only | 2019 |
| GNU/MinGW | Linux/Windows/MacOs | 9 |
- Conan for install packages (optional)
- Git for cmake automatic dependencies
- Doxygen for generate documentation (optional)
Using CMake
Configuring and Building
Using Make
Configuring and Building
- 💬 Join the Discussions: Share your insights, provide feedback, or ask questions.
- 🐛 Report Issues: Submit bugs found or log feature requests for the
SFMLTemproject. - 💡 Submit Pull Requests: Review open PRs, and submit your own PRs.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your github account.
- Clone Locally: Clone the forked repository to your local machine using a git client.
git clone --recursive https://github.com/djoezeke/SFMLTem
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.' - Push to github: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
- Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
- GLFWTem : A GLFW STarter Template with OpenGl and ImGui.
- SDLTem : A SDL Starter Template with SDL and ImGui.
- CppStarter : A C/C++ Starter Template.
Here are some useful resources to learn more:
This project is protected under the MIT License. For more details, refer to the LICENSE file.