Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7878 in orxonox.OLD for branches/gui/src


Ignore:
Timestamp:
May 26, 2006, 11:01:39 PM (19 years ago)
Author:
bensch
Message:

mapping correction

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  
    5252
    5353    this->backMaterial().setDiffuse(1.0,0.0,0.0);
     54    this->backMaterial().setDiffuseMap("cursor.png");
    5455    this->setSize2D(10, 20);
    5556    this->setAbsCoor2D(100, 100);
  • branches/gui/src/lib/gui/gl_gui/glgui_widget.cc

    r7876 r7878  
    115115
    116116    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);
    121121    glEnd();
    122122  }
Note: See TracChangeset for help on using the changeset viewer.