Update gitattributes
[opengl.git] / ui.hpp
1 #include <vector>
2 #include <string>
3 class ControlWindowDelegate {
4         public:
5                 virtual void weightChanged(int, float) = 0;
6                 virtual void solveWeights(std::vector<float> &) = 0;
7                 virtual void resetManipulators() = 0;
8                 virtual void playbackChanged(bool playing) = 0;
9 };
10
11 struct ControlWindow {
12         void *window, *controller;
13 };
14
15 ControlWindow createControlWindow(std::vector<std::string> names, ControlWindowDelegate *delegate);
16 void updateWeights(ControlWindow *cw, std::vector<float> weights);
17
18 bool isPanelFocused(ControlWindow cw);