Changeset 7878 in orxonox.OLD for branches/gui
- Timestamp:
- May 26, 2006, 11:01:39 PM (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_cursor.cc
r7876 r7878 52 52 53 53 this->backMaterial().setDiffuse(1.0,0.0,0.0); 54 this->backMaterial().setDiffuseMap("cursor.png"); 54 55 this->setSize2D(10, 20); 55 56 this->setAbsCoor2D(100, 100); -
branches/gui/src/lib/gui/gl_gui/glgui_widget.cc
r7876 r7878 115 115 116 116 glBegin(GL_QUADS); 117 glTexCoord2i(0, 1); glVertex2d(0, 0);118 glTexCoord2i(0, 0); glVertex2d(0, this->getSizeY2D());119 glTexCoord2i(1, 0); glVertex2d(this->getSizeX2D(), this->getSizeY2D());120 glTexCoord2i(1, 1); glVertex2d(this->getSizeX2D(), 0);117 glTexCoord2i(0,0); glVertex2d(0, 0); 118 glTexCoord2i(0,1); glVertex2d(0, this->getSizeY2D()); 119 glTexCoord2i(1,1); glVertex2d(this->getSizeX2D(), this->getSizeY2D()); 120 glTexCoord2i(1,0); glVertex2d(this->getSizeX2D(), 0); 121 121 glEnd(); 122 122 }
Note: See TracChangeset
for help on using the changeset viewer.