Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8035 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_cursor.cc


Ignore:
Timestamp:
May 31, 2006, 4:20:51 PM (18 years ago)
Author:
bensch
Message:

gui: merged the gui back to the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_cursor.cc

    r7919 r8035  
    5959    this->backMaterial().setDiffuse(1.0,0.0,0.0);
    6060    this->backMaterial().setDiffuseMap("cursor.png");
    61     this->setSize2D(10, 20);
     61    this->backMaterial().setBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
     62    this->setSize2D(20, 30);
    6263    this->setAbsCoor2D(100, 100);
    6364    this->setLayer(E2D_LAYER_ABOVE_ALL);
    6465    this->color = 0.0f;
    6566
     67    this->resize();
    6668  }
    6769
     
    7476    this->backMaterial().setDiffuse(color.x, color.y, color.z);
    7577
    76     if (this->movement != Vector2D())
     78    //if (this->movement != Vector2D())
    7779    {
    7880      newPos += movement;
     
    8890
    8991
    90       this->setAbsCoorSoft2D(newPos, 10);
    9192      movement = Vector2D();
    9293    }
     94    this->setAbsCoor2D(newPos);
    9395  }
    9496
     
    98100  void GLGuiCursor::draw() const
    99101  {
    100     this->startDraw();
     102    this->beginDraw();
    101103    GLGuiWidget::draw();
    102104    this->endDraw();
Note: See TracChangeset for help on using the changeset viewer.