Changeset 8972 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Jul 1, 2006, 11:26:00 AM (18 years ago)
- Location:
- trunk/src/lib/gui/gl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_bar.cc
r8448 r8972 55 55 } 56 56 57 void GLGuiBar::resize() 58 { 59 GLGuiWidget::resize(); 60 61 62 } 63 64 57 65 /** 58 66 * @brief draws the GLGuiBar … … 60 68 void GLGuiBar::draw() const 61 69 { 70 printf("BAR\n"); 62 71 this->beginDraw(); 63 64 72 GLGuiWidget::draw(); 65 73 66 //this->frontMaterial().select();67 glBegin(GL_QUADS);68 69 glTexCoord2f(0,0);70 glVertex2f(3.0, 3.0);71 glTexCoord2f(0, value/maximum);72 glVertex2f(3.0, (this->getSizeY2D()-3.0)* (value/maximum));73 glTexCoord2f(1, value/maximum);74 glVertex2f(this->getSizeX2D()-3.0, (this->getSizeY2D()-3.0) * (value/maximum));75 glTexCoord2f(1,0);76 glVertex2f(this->getSizeX2D()-3.0, 3.0);77 78 glEnd();79 74 this->endDraw(); 80 75 } -
trunk/src/lib/gui/gl/glgui_bar.h
r8145 r8972 37 37 virtual void draw() const; 38 38 39 protected: 40 virtual void resize(); 41 39 42 private: 40 43 void init(); -
trunk/src/lib/gui/gl/glgui_text.h
r8145 r8972 9 9 10 10 #include "glgui_widget.h" 11 11 #include "text.h" 12 12 // FORWARD DECLARATION 13 class Text;14 13 namespace OrxGui 15 14 { … … 19 18 * 20 19 */ 21 class GLGuiText : public GL Widget20 class GLGuiText : public GLGuiWidget 22 21 { 23 22 … … 35 34 36 35 private: 37 Text *text;36 Text text; 38 37 }; 39 38 }
Note: See TracChangeset
for help on using the changeset viewer.