Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_handler.cc
- Timestamp:
- May 23, 2006, 10:04:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_handler.cc
r5406 r7779 21 21 #include "glgui_mainwidget.h" 22 22 23 using namespace std; 23 namespace OrxGui 24 { 24 25 25 /**26 * standard constructor27 */28 GLGuiHandler::GLGuiHandler ()29 {30 this->setClassID(CL_GLGUI_HANDLER, "GLGuiHandler");31 this->setName("GLGuiHandler");26 /** 27 * standard constructor 28 */ 29 GLGuiHandler::GLGuiHandler () 30 { 31 this->setClassID(CL_GLGUI_HANDLER, "GLGuiHandler"); 32 this->setName("GLGuiHandler"); 32 33 33 }34 } 34 35 35 /**36 * the singleton reference to this class37 */38 GLGuiHandler* GLGuiHandler::singletonRef = NULL;36 /** 37 * the singleton reference to this class 38 */ 39 GLGuiHandler* GLGuiHandler::singletonRef = NULL; 39 40 40 /**41 @brief standard deconstructor42 */43 GLGuiHandler::~GLGuiHandler ()44 {45 GLGuiHandler::singletonRef = NULL;46 }41 /** 42 @brief standard deconstructor 43 */ 44 GLGuiHandler::~GLGuiHandler () 45 { 46 GLGuiHandler::singletonRef = NULL; 47 } 47 48 48 void GLGuiHandler::activate()49 {50 EventHandler::getInstance()->pushState(ES_MENU);49 void GLGuiHandler::activate() 50 { 51 EventHandler::getInstance()->pushState(ES_MENU); 51 52 52 }53 } 53 54 54 void GLGuiHandler::deactivate()55 {56 EventHandler::getInstance()->popState();55 void GLGuiHandler::deactivate() 56 { 57 EventHandler::getInstance()->popState(); 57 58 58 }59 } 59 60 60 61 61 void GLGuiHandler::process(const Event &event)62 {62 void GLGuiHandler::process(const Event &event) 63 { 63 64 64 65 66 } 65 67 66 } 67 68 void GLGuiHandler::draw() 69 { 70 GLGuiMainWidget::getInstance()->draw2D(E2D_LAYER_TOP); 71 } 68 void GLGuiHandler::draw() 69 { 70 GLGuiMainWidget::getInstance()->draw2D(E2D_LAYER_TOP); 71 } 72 72 73 73 74 void GLGuiHandler::tick(float dt)75 {76 74 void GLGuiHandler::tick(float dt) 75 { 76 } 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.