X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=ui.hpp;fp=ui.hpp;h=e77ba118872f36c39f3572e99fa27718f2470313;hp=0000000000000000000000000000000000000000;hb=9886c33eb8cd31f28234585718410cd51aef2a4c;hpb=d2a4cfcd292f5bc422a025d43855e5f4f21fb161 diff --git a/ui.hpp b/ui.hpp new file mode 100644 index 0000000..e77ba11 --- /dev/null +++ b/ui.hpp @@ -0,0 +1,18 @@ +#include +#include +class ControlWindowDelegate { + public: + virtual void weightChanged(int, float) = 0; + virtual void solveWeights(std::vector &) = 0; + virtual void resetManipulators() = 0; + virtual void playbackChanged(bool playing) = 0; +}; + +struct ControlWindow { + void *window, *controller; +}; + +ControlWindow createControlWindow(std::vector names, ControlWindowDelegate *delegate); +void updateWeights(ControlWindow *cw, std::vector weights); + +bool isPanelFocused(ControlWindow cw);