Changeset 5406 in orxonox.OLD for trunk/src/lib/gui/gl_gui
- Timestamp:
- Oct 19, 2005, 6:30:07 PM (19 years ago)
- Location:
- trunk/src/lib/gui/gl_gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/Makefile.am
r5384 r5406 10 10 11 11 libORXglgui_a_SOURCES = glmenu/glmenu_imagescreen.cc \ 12 13 12 glgui_handler.cc \ 13 glgui_mainwidget.cc \ 14 14 glgui_widget.cc \ 15 15 glgui_button.cc \ -
trunk/src/lib/gui/gl_gui/Makefile.in
r5384 r5406 202 202 libORXglgui_a_CPPFLAGS = -DBUILD_ORXONOX 203 203 libORXglgui_a_SOURCES = glmenu/glmenu_imagescreen.cc \ 204 205 204 glgui_handler.cc \ 205 glgui_mainwidget.cc \ 206 206 glgui_widget.cc \ 207 207 glgui_button.cc \ -
trunk/src/lib/gui/gl_gui/glgui_handler.cc
r5401 r5406 18 18 #include "glgui_handler.h" 19 19 #include "event_handler.h" 20 21 #include "glgui_mainwidget.h" 20 22 21 23 using namespace std; … … 63 65 64 66 } 67 68 void GLGuiHandler::draw() 69 { 70 GLGuiMainWidget::getInstance()->draw2D(E2D_LAYER_TOP); 71 } 72 73 74 void GLGuiHandler::tick(float dt) 75 { 76 77 } -
trunk/src/lib/gui/gl_gui/glgui_handler.h
r5405 r5406 17 17 virtual ~GLGuiHandler(void); 18 18 /** @returns a Pointer to the only object of this Class */ 19 inline static GLGuiHandler* getInstance(void) { if (! singletonRef) singletonRef = new GLGuiHandler(); returnsingletonRef; };19 inline static GLGuiHandler* getInstance(void) { if (!GLGuiHandler::singletonRef) GLGuiHandler::singletonRef = new GLGuiHandler(); return GLGuiHandler::singletonRef; }; 20 20 21 21 void activate(); … … 24 24 25 25 virtual void process(const Event &event); 26 void draw(); 27 void tick(float dt); 26 28 27 29 private: -
trunk/src/lib/gui/gl_gui/glgui_widget.cc
r5404 r5406 50 50 this->clickable = true; 51 51 this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE); 52 this->setParent2D((Element2D*)NULL);52 // this->setParent2D((Element2D*)NULL); 53 53 54 54 this->backMat = NULL;
Note: See TracChangeset
for help on using the changeset viewer.