Line | |
---|
1 | /*! |
---|
2 | * @file glgui_widget.h |
---|
3 | * The gl_widget of the openglGUI |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GLGUI_WIDGET_H |
---|
7 | #define _GLGUI_WIDGET_H |
---|
8 | |
---|
9 | #include "element_2d.h" |
---|
10 | |
---|
11 | // FORWARD DECLARATION |
---|
12 | |
---|
13 | //! This is part of the openglGUI class |
---|
14 | /** |
---|
15 | * A widget is the main class of all the elements of th GUI. |
---|
16 | */ |
---|
17 | class GLGuiWidget : public Element2D { |
---|
18 | |
---|
19 | public: |
---|
20 | GLGuiWidget(); |
---|
21 | virtual ~GLGuiWidget(); |
---|
22 | |
---|
23 | void init(); |
---|
24 | |
---|
25 | virtual void draw() = 0; |
---|
26 | virtual void update() = 0; |
---|
27 | |
---|
28 | private: |
---|
29 | |
---|
30 | }; |
---|
31 | |
---|
32 | #endif /* _GLGUI_WIDGET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.