Changeset 7902 in orxonox.OLD
- Timestamp:
- May 27, 2006, 2:01:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_checkbutton.cc
r7901 r7902 89 89 90 90 if (this->bActive) 91 { 91 92 glColor3f( 1, 1 ,1); 93 glTexCoord2i(0,0); glVertex2d(8, 8); 94 glTexCoord2i(0,1); glVertex2d(8, this->getSizeY2D()-8); 95 glTexCoord2i(1,1); glVertex2d(this->getSizeY2D()-8, this->getSizeY2D()-8); 96 glTexCoord2i(1,0); glVertex2d(this->getSizeY2D()-8, 8); 97 glEnd(); 98 99 100 // DRAW a cross :) 101 glColor3f(0,0,0); 102 glLineWidth(3.0); 103 glBegin(GL_LINE_LOOP); 104 glVertex2d(8,8); 105 glVertex2d(this->getSizeY2D()/2, this->getSizeY2D()/2 - 1); 106 107 glVertex2d(this->getSizeY2D() -8, 8); 108 glVertex2d(this->getSizeY2D()/2 +1, this->getSizeY2D()/2); 109 110 glVertex2d(this->getSizeY2D() -8, this->getSizeY2D() - 8); 111 glVertex2d(this->getSizeY2D()/2, this->getSizeY2D()/2+1); 112 113 glVertex2d(8, this->getSizeY2D() - 8); 114 glVertex2d(this->getSizeY2D()/2 -1, this->getSizeY2D()/2); 115 glEnd(); 116 } 92 117 else 118 { 93 119 glColor3f(0, 0, 0); 94 glTexCoord2i(0,0); glVertex2d(8, 8);95 glTexCoord2i(0,1); glVertex2d(8, this->getSizeY2D()-8);96 glTexCoord2i(1,1); glVertex2d(this->getSizeY2D()-8, this->getSizeY2D()-8);97 glTexCoord2i(1,0); glVertex2d(this->getSizeY2D()-8, 8);98 99 glEnd();120 glTexCoord2i(0,0); glVertex2d(8, 8); 121 glTexCoord2i(0,1); glVertex2d(8, this->getSizeY2D()-8); 122 glTexCoord2i(1,1); glVertex2d(this->getSizeY2D()-8, this->getSizeY2D()-8); 123 glTexCoord2i(1,0); glVertex2d(this->getSizeY2D()-8, 8); 124 glEnd(); 125 } 100 126 101 127
Note: See TracChangeset
for help on using the changeset viewer.