Changeset 7889 in orxonox.OLD for branches/gui/src
- Timestamp:
- May 27, 2006, 3:14:45 AM (18 years ago)
- Location:
- branches/gui/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/graphics/text_engine/multi_line_text.cc
r7758 r7889 64 64 return; 65 65 glPushMatrix(); 66 glPushAttrib(GL_ENABLE_BIT); 66 67 // transform for alignment. 67 68 // TODO make the Stuff with the alignment … … 117 118 } 118 119 glEnd(); 120 glPopAttrib(); 119 121 glPopMatrix(); 120 122 } -
branches/gui/src/lib/graphics/text_engine/text.cc
r7877 r7889 189 189 return; 190 190 glPushMatrix(); 191 glPushAttrib(GL_ENABLE_BIT); 191 192 // transform for alignment. 192 193 if (this->getAlignment() == TEXT_ALIGN_RIGHT) … … 230 231 } 231 232 glEnd(); 233 glPopAttrib(); 232 234 glPopMatrix(); 233 235 } -
branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
r7888 r7889 92 92 glBegin(GL_QUADS); 93 93 94 gl Vertex2d(1, 1);95 gl Vertex2d(1, this->getSizeY2D() -1);96 gl Vertex2d(this->getSizeX2D() -1, this->getSizeY2D()-1);97 gl Vertex2d(this->getSizeX2D()-1,1);94 glTexCoord2i(0,0); glVertex2d(1, 1); 95 glTexCoord2i(0,1); glVertex2d(1, this->getSizeY2D() - 1); 96 glTexCoord2i(1,1); glVertex2d(this->getSizeX2D() - 1, this->getSizeY2D() -1); 97 glTexCoord2i(1,0); glVertex2d(this->getSizeX2D() - 1, 1); 98 98 99 99 glEnd(); -
branches/gui/src/story_entities/movie_loader.cc
r7868 r7889 115 115 GraphicsEngine::enter2DMode(); 116 116 117 glPushAttrib(GL_ENABLE_BIT); 117 118 glEnable(GL_TEXTURE_2D); 118 119 glBindTexture(GL_TEXTURE_2D, movie_player->getTexture()); -
branches/gui/src/world_entities/planet.cc
r7221 r7889 109 109 void Planet::draw() const 110 110 { 111 glMatrixMode(GL_MODELVIEW);112 glPushMatrix();113 114 glShadeModel(GL_SMOOTH);115 116 /* translate */117 glTranslatef (this->getAbsCoor ().x,118 this->getAbsCoor ().y,119 this->getAbsCoor ().z);120 Vector tmpRot = this->getAbsDir().getSpacialAxis();121 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );122 123 111 this->material.select(); 124 112 125 // /WorldEntity::draw(); 126 this->getModel(0)->draw(); 127 // static_cast<VertexArrayModel*>(this->getModel(0))->debug(); 128 129 glPopMatrix(); 113 WorldEntity::draw(); 130 114 } 131 115
Note: See TracChangeset
for help on using the changeset viewer.