Helper to integrate an Undo Engine over an ofParameterGroup params container. Based on ofxUndo from nariakiiwatani.
README
ofxSurfingUndoHelper
Overview
An add-on helper to integrate an Undo Engine based on ofxUndo from nariakiiwatani, but simplified to easely use ofParameters and with an ImGui based GUI.Screenshot
Features
- Controls the ofParameters inside an ofParameterGroup.
- Adds ImGui controls to improve the workflow.
- Files Mode to allow persistent Undo History between App sessions.
- Ram Mode should be faster on big files / too many params scenarios.
- Key Commands:
Usage
- Check the example.
.cpp include "ofxSurfingUndoHelper.h"
include "ofxSurfingImGui.h"
ofxSurfingUndoHelper undoManager; ofxSurfing_ImGui_Manager guiManager;
ofParameterGroup params;
ofApp.cpp
.cpp void ofApp::setup() { params.add(..) // -> add params
undoManager.setup(params);
guiManager.setup(); }
void ofApp::draw() { guiManager.beginWindow(); { undoManager.drawImGui(); } guiManager.endWindow(); }
void ofApp::keyPressed(int key) { if (key == 's') undoManager.doStoreUndo(); } `
Dependencies
ofxSurfingHelpers ofxSurfingImGui [WIP] ofxImGui. Fork from @Daandelange.
ofxUndo Already added to OFX_ADDON/libs/`. No need to add into PROJECT GENERATOR. Tested Systems
Windows 10 / VS 2017 / OF ~0.11 Windows 10 / VS 2022 / oF ~0.12Author
An add-on by @moebiusSurfing ( ManuMolina ) 2021-2022License
MIT LicenseTODO
+ Allow multiple independent groups. + Add Lite version without ImGui but ofxGui instead.Get this addon
Latest release
v0.1
published 4y ago
ofxAddons