relatório limpo. falta começar apresentação.
[xYpjg3TdSw.git] / Window.h
blob85a7746f5a6a2da8af5f41aec42977eef2a23f9d
1 #ifndef __IA_WINDOW_H__
2 #define __IA_WINDOW_H__
5 struct GLUI;
6 struct GLUI_RadioGroup;
7 struct GLUI_Spinner;
8 struct GLUI_Button;
9 class Controller;
11 class Window
13 public:
14 Window(int argc, char** argv, Controller *control);
15 ~Window();
16 void main_loop();
17 void enable_all();
18 void disable_all();
19 void enable(const char *s);
20 void disable(const char *s);
21 void display();
23 /* GLUT callbacks */
24 void render_scene(void);
25 void special_keys(int key, int x, int y);
26 void keyboard_func(unsigned char key, int x, int y);
27 void reshape_func(int width, int height);
28 void mouse_func(int button, int state, int x, int y);
29 void timer_func(int key);
30 void control_func(int id);
32 private:
33 /* Desenho */
34 void draw_tab();
35 void draw_tab_bg();
36 void draw_circle(int x, int y, int color);
37 void draw_square(int x, int y, int color);
39 int _window_id, _first_move, _computer_color, _minimax_depth, _width, _height;
40 GLUI *glui;
41 GLUI_RadioGroup *_RadioGroup_firstMove, *_RadioGroup_computerColor;
42 GLUI_Spinner *_Spinner_minimax;
43 GLUI_Button *_Button_start, *_Button_stop, *_Button_undo, *_Button_redo;
44 Controller *_control;
47 #endif