7ace8bbb3c5062e5b582ced22e6a051e932b8ba5
ConnectTool - Dear ImGui Hello World
This repository includes a simple Dear ImGui "Hello World" example using GLFW + OpenGL3 for cross-platform compatibility.
Prerequisites
- C++17 compatible compiler
- CMake 3.10 or higher
- OpenGL 3.0 or higher
- GLFW library
Getting Dear ImGui
- Download Dear ImGui from https://github.com/ocornut/imgui
- Extract the contents to a folder named
imguiin the project root (next toCMakeLists.txt)
Building
-
Ensure you have GLFW installed. On Windows, you can use vcpkg:
vcpkg install glfw3On Linux/macOS, use your package manager (e.g.,
sudo apt install libglfw3-devon Ubuntu). -
Create a build directory:
mkdir build cd build cmake .. make -
Run the executable:
./ConnectTool
Cross-Platform Notes
- This setup uses GLFW for window management and OpenGL for rendering, ensuring compatibility across Windows, Linux, and macOS.
- If using Visual Studio on Windows, you can generate VS solution files with
cmake -G "Visual Studio 16 2019" ..(adjust for your version). - For macOS, ensure you have Xcode command line tools installed.
Description
Languages
C++
91.9%
CMake
8.1%