← Back

ofxTweakbar

github.com/diederickh/ofxTweakbar · @diederickh
OF 0.7 GUI

Simple clean GUI system for openFrameworks based on AntTweakbar

27 14 Last commit 14y ago Created 16y ago

Forks

Forks pushed to more recently than diederickh/ofxTweakbar itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

morethanlogic/ofxTweakbar by @morethanlogic · ★ 1 · pushed 14y ago

README

ofxTweakbar

AntTweakbar addon for openFrameworks. AntTweakbar is a clean, small and simple GUI system designed to tweak parameters. This is a must have GUI when you need to tweak certain parameters in your app. The addon is designed to be as clear and versatile as possible.

Compiling AntTweakbar on MacOS (static lib)

Copy the Makefile.osx in the src directory of AntTweakbar to Makefile

Change lines to this: (just check the variables) +++++++++++++++++++++++++++++++++++++++++++++++++ SO_EXT = .a CXXCFG = -O3 -arch i386 -arch x86_64 LFLAGS = -arch i386 -arch x86_64

At the bottom change this: +++++++++++++++++++++++++ $(TARGET): $(OBJS) @echo "====== Archive $@ ===========" $(AR) $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(OBJS)

I've put the Makefile in the "doc" directory.

Small / simple example

settings->addBool("boolean", &test_bool_a); settings->addInt("int32", &test_standard_int, "min=1 max=100 key=b"); settings->addVec3f("test", &dir)->setGroup("color"); settings->addColor3f("color3f", &colors)->setLabel("Colour")->setGroup("color");

Get this addon

HTTPS
SSH