Skip to content

ArthurSonzogni/smkflow

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

logo

travis issues license contributors

SMKFLOW is a node editor in C++ compatible with WebAssembly using SMK

Features:

  • Compatible with WebAssembly.
  • The permissive MIT license.
  • Use CMake FetchContent. No download is needed. You use the cmake snippet below to depends on smkflow.

Warning. This is an active project. Please do not expect the API to be stable for the next few months.

Examples/Demo:

Use the ./examples/ directory. This produce the following webassembly demo

API

The API consists of 4 files:

  • Model.hpp Let you define how your nodes will look like. Please try example: ./examples/minimal.cpp.

  • Elements.hpp Contains the public definition elements composing the view at runtime. You can use them to query/update the view. See ./examples/algebra.cpp file.

  • Constants.hpp Contains the default sizes and colors the library is using for staying consistant. Feel free to fork and modify this file to make smkflow suits your needs.

  • Widget/. Every nodes can display some GUI inside. This directory contains the GUI public interface. You can also easily define your own components if needed.

CMake

Include the following lines in your CMake and you are ready to go.

include(FetchContent)

FetchContent_Declare(smkflow
  GIT_REPOSITORY https://github.com/ArthurSonzogni/smkflow
  GIT_TAG master # Please choose a fixed commit hash here.
)

FetchContent_GetProperties(smkflow)
if(NOT smkflow_POPULATED)
  FetchContent_Populate(smkflow)
  add_subdirectory( ${smkflow_SOURCE_DIR} ${smkflow_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()

Then link your application with smkflow:

target_link_library(my_applcation PRIVATE smkflow::smkflow)

Want to contribute?

Feel free to post issues, ask questions or submit any work to this repository.

About

A C++ dataflow node editor -- Compatible with WebAssembly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published