Skip to content

diwacreation3/SFMLxImGui

Repository files navigation

🍁 SFML-Imgui Template

Note: tested on windows 10 only linux support will be added soon

Please give star ✨ if you are using this template. fork it, Use it, Maintain it

✨ Backstory

I wanted to build gui applications with SFML and Dear Imgui. I didn,t find any relevent tutorial or repositories So, i created this Template

Prerequisites 🛠

  1. Visual Studio Code Follow Link to download
  2. Msys for MInGW gcc and g++ compiler follow link

Follow the installation tutorial from website and you are good to go

Don't forget to added path of mingw installation on system variable

Now you are good to go 😉

How to build 🤷‍♀️

Note first run take some time to compile so be clam

You need to instal Msys and Mingw as mentioned above.

After installing mingw follow these steps 👀

  1. Clone this Repository or Download Zip-file and unzip it
  2. Open vscode or open that folder on terminal
  3. On vscode open terminal and run below command
    mingw32-make -f MakeFile
  4. type your project name to run it for eg. main.exe

3rd party libraries

SFML ✨

  • SFML: SFML is a simple, fast, cross-paltform and object-oriented multimedia API
  • SFML github repo

Dear ImGui ✨

  • ImGui: Dear imgui is a bloat free graphical user interface library for c++
  • Imgui official repo

ImGui-SFML binding ✨

  • ImGui-SFML: library which allows you to use Dear ImGui with SFML binding
  • ImGui-SFML repo

Project Structure 📝

  1. assets 📁 : assets like fonts images etc..
  2. headers 📁 : SFML and Imgui headers file
  3. obj 📁 : all object files
  4. src 📁 : Projects files and custom headers
  5. .exe files
  6. MakeFile
  7. SFML Dlls

Compile on windows ⚒

  • Clone the repo or Download and unzip it

Run this command on terminal

mingw32-make -f MakeFile

Note: You can change MakeFile as your project needs.

Happy coding 😉

Keep Learning 🥰

Follow me if you like :)

About

SFML ImGui easy to use Template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published