Changeset 6287 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.cc
- Timestamp:
- Dec 25, 2005, 5:32:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_widget.cc
r5690 r6287 17 17 18 18 #include "glgui_widget.h" 19 20 #include "material.h" 19 21 20 22 #include "debug.h" … … 52 54 // this->setParent2D((Element2D*)NULL); 53 55 54 this->backMat = NULL; 55 this->backModel = 0; 56 this->backMat = new Material(); 57 this->backMat->setDiffuse(0, 0, 0); 58 56 59 this->frontMat = NULL; 57 60 this->frontModel = 0; … … 104 107 this->setVisibility(true); 105 108 } 109 110 111 void GLGuiWidget::draw() const 112 { 113 this->backMat->select(); 114 115 glBegin(GL_QUADS); 116 117 118 glVertex2d(0,0); 119 glVertex2d(0, this->getSizeY2D()); 120 glVertex2d(this->getSizeX2D(), this->getSizeY2D()); 121 glVertex2d(this->getSizeX2D(),0); 122 123 glEnd(); 124 } 125
Note: See TracChangeset
for help on using the changeset viewer.