Go to the documentation of this file.00001 #ifndef COLORPICKERWINDOW_HPP
00002 #define COLORPICKERWINDOW_HPP
00003
00004 #include "Color.hpp"
00005 #include "Shader.hpp"
00006
00007 class ColorPickerWindow {
00008 private:
00009 static int width, height;
00010 static Shader *shader;
00011 static Color *currentColor;
00012
00013 static bool moveHS;
00014 static bool moveV;
00015 static bool updated;
00016
00017 static void renderHueSaturationWindow(void);
00018 static void renderColorPoint(void);
00019 static void renderValueBar(void);
00020 protected:
00021 static int window_id;
00022 public:
00023 static void glutDisplay(void);
00024 static void glutIdle(void);
00025 static void glutInit(int parent_id);
00026 static void glutKeyboard(unsigned char key, int x, int y);
00027 static void glutMotion(int x, int y);
00028 static void glutMouse(int button, int state, int x, int y);
00029 static void glutReshape(int w, int h);
00030 };
00031
00032 #endif