Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5419 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Oct 22, 2005, 10:55:51 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: MUCH better algorithm for the QuaternionSlerp in PNodes rotate-to function
also updated the Quaternion class, to now hold dot-product and distance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/text.cc

    r5418 r5419  
    251251        {
    252252          glBegin(GL_QUADS);
     253
    253254          glTexCoord2f(tmpGlyph->texCoord[0], tmpGlyph->texCoord[2]);
    254255          glVertex2d(posX, - tmpGlyph->bearingY * this->size);
     256
    255257          glTexCoord2f(tmpGlyph->texCoord[0], tmpGlyph->texCoord[3]);
    256258          glVertex2d(posX, (tmpGlyph->height - tmpGlyph->bearingY)*this->size);
     259
    257260          glTexCoord2f(tmpGlyph->texCoord[1], tmpGlyph->texCoord[3]);
    258261          glVertex2d(posX+tmpGlyph->width*this->size, (tmpGlyph->height - tmpGlyph->bearingY)*this->size);
     262
    259263          glTexCoord2f(tmpGlyph->texCoord[1], tmpGlyph->texCoord[2]);
    260264          glVertex2d(posX+tmpGlyph->width*this->size, - tmpGlyph->bearingY*this->size);
     265
    261266          glEnd();
    262267          glEndList();
    263           posX += tmpGlyph->width*this->size;
     268          posX += tmpGlyph->advance * this->size;
    264269        }
    265         tmpText++;
     270        ++tmpText;
    266271      }
    267272    }
Note: See TracChangeset for help on using the changeset viewer.