Changeset 8035 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_cursor.cc
- Timestamp:
- May 31, 2006, 4:20:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_cursor.cc
r7919 r8035 59 59 this->backMaterial().setDiffuse(1.0,0.0,0.0); 60 60 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); 62 63 this->setAbsCoor2D(100, 100); 63 64 this->setLayer(E2D_LAYER_ABOVE_ALL); 64 65 this->color = 0.0f; 65 66 67 this->resize(); 66 68 } 67 69 … … 74 76 this->backMaterial().setDiffuse(color.x, color.y, color.z); 75 77 76 if (this->movement != Vector2D())78 //if (this->movement != Vector2D()) 77 79 { 78 80 newPos += movement; … … 88 90 89 91 90 this->setAbsCoorSoft2D(newPos, 10);91 92 movement = Vector2D(); 92 93 } 94 this->setAbsCoor2D(newPos); 93 95 } 94 96 … … 98 100 void GLGuiCursor::draw() const 99 101 { 100 this-> startDraw();102 this->beginDraw(); 101 103 GLGuiWidget::draw(); 102 104 this->endDraw();
Note: See TracChangeset
for help on using the changeset viewer.