valine / zpath

Interactive, hardware accelerated computation graphs
Apache License 2.0
10 stars 1 forks source link

ZPath

Interactive, hardware accelerated computation graphs

Screenshot 2024-02-15 at 6 03 14 PM

Build instructions

Dependencies

To build on Linux

Packages to install on ubuntu

cd zpath 
mkdir build && cd build
cmake ..
make

To build on Windows

Install Visual Studio build tools

From the Developer command prompt run

cd zpath 
mkdir build && cd build
cmake ..
msbuild ALL_BUILD.vsfx

To build on MacOS

Install CMake and XCode

From Terminal cd zpath mkdir build && cd build camke -DCMAKE_INSTALL_PREFIX=/Applications .. make

UI Examples

// Button example
auto* button = new ZButton("Button name", parent);
saveButton->setOnClick([this](ZView* sender) {
    // Handle click
});

// Slider example
auto* slider = new ZSlider("Slider name", min, max, defaultValue, parent);
slider->setOnSlide([this](ZView* sender, float value, bool wasUserAction) {
    // Handle slide
});

// Checkbox example
auto* checkbox = new ZCheckbox("Checkbox name", parent);
checkbox->setOnClick([this](ZView* sender, bool checked) {
    // Handle check change
});