Changeset 7924 in orxonox.OLD for branches/gui/src/lib/gui/gl_gui/glgui_widget.cc
- Timestamp:
- May 28, 2006, 5:04:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_widget.cc
r7919 r7924 28 28 29 29 /** 30 * standard constructor30 * @brief standard constructor 31 31 */ 32 GLGuiWidget::GLGuiWidget ( 32 GLGuiWidget::GLGuiWidget (GLGuiWidget* parent) 33 33 { 34 34 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 40 43 */ 41 44 GLGuiWidget::~GLGuiWidget() … … 63 66 this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE); 64 67 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); 67 70 68 71 this->widgetSignals.resize(SignalCount, SignalConnector()); … … 130 133 void GLGuiWidget::released() 131 134 { 132 this->frontMat .setDiffuse(0,1,0);135 this->frontMaterial().setDiffuse(0,1,0); 133 136 134 137 } … … 194 197 void GLGuiWidget::draw() const 195 198 { 196 this->backMat .select();199 this->backMaterial().select(); 197 200 198 201 glBegin(GL_QUADS);
Note: See TracChangeset
for help on using the changeset viewer.