Changeset 8619 in orxonox.OLD for trunk/src/lib/gui/gl/glgui_image.cc
- Timestamp:
- Jun 20, 2006, 1:24:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_image.cc
r8448 r8619 47 47 this->setClassID(CL_GLGUI_IMAGE, "GLGuiImage"); 48 48 49 this->setForegroundColor(Color(1,1,1,1)); 49 50 this->_imageMaterial.setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 50 51 … … 76 77 void GLGuiImage::updateFrontColor() 77 78 { 78 this->_imageMaterial.setDiffuseColor( this->frontColor());79 this->_imageMaterial.setDiffuseColor(foregroundColor()); 79 80 } 80 81 81 82 void GLGuiImage::resize() 82 83 { 83 this->_imagePlane.setTopLeft( this->borderLeft(), this->borderTop());84 this->_imagePlane.setTopLeft(borderLeft(), borderTop()); 84 85 this->_imagePlane.setSize(this->getSizeX2D() - (borderLeft() + borderRight()), this->getSizeY2D() - (borderTop() + borderBottom()) ); 85 86 GLGuiWidget::resize();
Note: See TracChangeset
for help on using the changeset viewer.