A graphical interface in c++ with OpenGl
MIT License
HorizonGUI is a Graphic User Interface library made in C++ with OpenGL. There are also Python bindings available.
You can also simply install a pre-built version here.
You first need to clone the repository. Make sure to use git and don't forget to
include --recurse-submodules
when cloning.
git clone https://github.com/Horizon-NTH/HorizonGUI.git --recurse-submodules
You will now able to choose between script or manual installation
Use the install.sh
script to compile the
library. You can also erase build files by adding -e
/ --erase
.
./install.sh -e
Ensure you have CMake installed. Generate the build environment using CMake:
cd HorizonGUI
mkdir build && cd build
cmake ..
Build directly using CMake:
cmake --build .
This command will create all the lib files you need in HorizonGUI/lib
.
Alternatively, you can use Microsoft Visual Studio to launch the project
and build it. Open the horizongui.sln
file with Microsoft Visual Studio.
To install the Python bindings, you can install it from PyPi using this command: Don't forget to install the scikit-build-core package.
pip install scikit-build-core hgui
Or you can build it from source using those commands:
git clone https://github.com/Horizon-NTH/HorizonGUI.git --recurse-submodules
cd HorizonGUI
pip install ./python
Note: Both methods can take some time due to the compilation of the underlying C++ library.
Once the installation is complete, you can import the module into your Python script using the following statement:
import hgui
Please refer to the wiki.
HorizonGUI is licensed under the MIT license.