Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_handler.cc


Ignore:
Timestamp:
May 23, 2006, 10:04:17 PM (18 years ago)
Author:
bensch
Message:

3088 linews changed :): trunk: namespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_handler.cc

    r5406 r7779  
    2121#include "glgui_mainwidget.h"
    2222
    23 using namespace std;
     23namespace OrxGui
     24{
    2425
    25 /**
    26  * standard constructor
    27  */
    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");
    3233
    33 }
     34  }
    3435
    35 /**
    36  *  the singleton reference to this class
    37  */
    38 GLGuiHandler* GLGuiHandler::singletonRef = NULL;
     36  /**
     37   *  the singleton reference to this class
     38   */
     39  GLGuiHandler* GLGuiHandler::singletonRef = NULL;
    3940
    40 /**
    41    @brief standard deconstructor
    42  */
    43 GLGuiHandler::~GLGuiHandler ()
    44 {
    45   GLGuiHandler::singletonRef = NULL;
    46 }
     41  /**
     42     @brief standard deconstructor
     43   */
     44  GLGuiHandler::~GLGuiHandler ()
     45  {
     46    GLGuiHandler::singletonRef = NULL;
     47  }
    4748
    48 void GLGuiHandler::activate()
    49 {
    50   EventHandler::getInstance()->pushState(ES_MENU);
     49  void GLGuiHandler::activate()
     50  {
     51    EventHandler::getInstance()->pushState(ES_MENU);
    5152
    52 }
     53  }
    5354
    54 void GLGuiHandler::deactivate()
    55 {
    56   EventHandler::getInstance()->popState();
     55  void GLGuiHandler::deactivate()
     56  {
     57    EventHandler::getInstance()->popState();
    5758
    58 }
     59  }
    5960
    6061
    61 void GLGuiHandler::process(const Event &event)
    62 {
     62  void GLGuiHandler::process(const Event &event)
     63  {
    6364
    6465
     66  }
    6567
    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  }
    7272
    7373
    74 void GLGuiHandler::tick(float dt)
    75 {
    76 
     74  void GLGuiHandler::tick(float dt)
     75  {
     76  }
    7777}
Note: See TracChangeset for help on using the changeset viewer.