Changeset 8010 in orxonox.OLD for branches/gui/src/lib
- Timestamp:
- May 31, 2006, 2:03:21 AM (19 years ago)
- Location:
- branches/gui/src/lib/gui/gl_gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_image.cc
r8009 r8010 54 54 void GLGuiImage::loadImageFromTexture(const Texture& texture) 55 55 { 56 this->texture = texture; 56 this->frontMaterial().setDiffuseMap(texture); 57 this->frontMaterial().setDiffuse(1,1,1); 57 58 } 58 59 … … 74 75 void GLGuiImage::resize() 75 76 { 76 this->frontRect().setTopLeft( 1, 1);77 this->frontRect().setSize(this->getSizeX2D() -2 , this->getSizeY2D() -2);77 this->frontRect().setTopLeft(this->borderSize(), this->borderSize()); 78 this->frontRect().setSize(this->getSizeX2D() -2.0*this->borderSize(), this->getSizeY2D() - 2.0* this->borderSize() ); 78 79 GLGuiWidget::resize(); 79 80 } … … 91 92 this->drawRect(this->frontRect()); 92 93 this->endDraw(); 93 94 95 94 } 96 95 } -
branches/gui/src/lib/gui/gl_gui/glgui_text.h
r7779 r8010 26 26 virtual ~GLGuiText(); 27 27 28 void setText(); 29 30 virtual void draw(); 31 32 private: 28 33 void init(); 29 34 30 virtual void draw();31 35 32 36 private:
Note: See TracChangeset
for help on using the changeset viewer.