Changeset 8619 in orxonox.OLD for trunk/src/lib/gui/gl/glgui_cursor.cc
- Timestamp:
- Jun 20, 2006, 1:24:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_cursor.cc
r8324 r8619 57 57 this->setClassID(CL_GLGUI_CURSOR, "GLGuiCursor"); 58 58 59 this->backMaterial().setDiffuse(1.0,0.0,0.0); 60 this->backMaterial().setDiffuseMap("cursor.png"); 61 this->backMaterial().setBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 59 this->setBackgroundColor(Color(1.0, 1.0, 1.0, 1.0)); 60 this->setBackgroundTexture("cursor.png"); 62 61 this->setSize2D(50, 50); 63 62 this->setAbsCoor2D(100, 100); 64 63 this->setLayer(E2D_LAYER_ABOVE_ALL); 65 64 this->color = 0.0f; 65 this->frameNumber = 0.0f; 66 66 67 67 this->resize(); … … 79 79 bool GLGuiCursor::loadTextureSequence(const std::string& imageNameSubstitue, unsigned int from, unsigned int to) 80 80 { 81 this->backMaterial().setDiffuse(1.0, 1.0, 1.0);81 //this->background().setDiffuse(1.0, 1.0, 1.0); 82 82 return this->seq.loadImageSeries(imageNameSubstitue, from, to); 83 83 } … … 97 97 this->color -= 360.0; 98 98 Vector color = Color::HSVtoRGB(Vector(this->color, 1.0, 1.0)); 99 this->backMaterial().setDiffuse(color.x, color.y, color.z); 99 //this->setBackgroundColor(color.x, color.y, color.z); 100 /// FIXME 101 100 102 } 101 103 //if (this->movement != Vector2D()) … … 125 127 this->beginDraw(); 126 128 127 this->back Material().select();129 this->background().select(); 128 130 if (!this->seq.empty()) 129 131 glBindTexture(GL_TEXTURE_2D, this->seq.getFrameTexture((int)frameNumber));
Note: See TracChangeset
for help on using the changeset viewer.