Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2006, 5:04:08 PM (18 years ago)
Author:
bensch
Message:

gui: introducing rect into gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl_gui/glgui_widget.cc

    r7919 r7924  
    2828
    2929  /**
    30    * standard constructor
     30   * @brief standard constructor
    3131  */
    32   GLGuiWidget::GLGuiWidget ( )
     32  GLGuiWidget::GLGuiWidget (GLGuiWidget* parent)
    3333  {
    3434    this->init();
    35   }
    36 
    37 
    38   /**
    39    * standard deconstructor
     35
     36    if (parent != NULL)
     37      parent->addChild2D(this);
     38  }
     39
     40
     41  /**
     42   * @brief standard deconstructor
    4043   */
    4144  GLGuiWidget::~GLGuiWidget()
     
    6366    this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE);
    6467
    65     this->backMat.setDiffuse(1.0, 1.0, 1.0);
    66     this->frontMat.setDiffuse(1.0, 0.0, 0.0);
     68    this->_backMat.setDiffuse(1.0, 1.0, 1.0);
     69    this->_frontMat.setDiffuse(1.0, 0.0, 0.0);
    6770
    6871    this->widgetSignals.resize(SignalCount, SignalConnector());
     
    130133  void GLGuiWidget::released()
    131134  {
    132     this->frontMat.setDiffuse(0,1,0);
     135    this->frontMaterial().setDiffuse(0,1,0);
    133136
    134137  }
     
    194197  void GLGuiWidget::draw() const
    195198  {
    196     this->backMat.select();
     199    this->backMaterial().select();
    197200
    198201    glBegin(GL_QUADS);
Note: See TracChangeset for help on using the changeset viewer.