Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6599 in orxonox.OLD for branches/avi_play/src


Ignore:
Timestamp:
Jan 18, 2006, 5:19:27 PM (19 years ago)
Author:
hdavid
Message:

avi_play: movie plays (not fullscreen)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/story_entities/movie_loader.cc

    r6598 r6599  
    115115  GraphicsEngine::enter2DMode();
    116116
    117   //glEnable(GL_TEXTURE_2D);
    118   //glBindTexture(GL_TEXTURE_2D, movie_player->getTexture());
     117  glEnable(GL_TEXTURE_2D);
     118  glBindTexture(GL_TEXTURE_2D, movie_player->getTexture());
    119119
    120120  glColor3f(1.0, 1.0, 1.0);
    121121
    122122  glBegin(GL_QUADS);
    123     glTexCoord2f(1.0f, 1.0f); glVertex2f( 0, 0);
    124     glTexCoord2f(0.0f, 1.0f); glVertex2f( 1, 0);
    125     glTexCoord2f(0.0f, 0.0f); glVertex2f( 1, 1);
    126     glTexCoord2f(1.0f, 0.0f); glVertex2f( 0, 1);
     123    glTexCoord2f(1.0f, 0.0f); glVertex2f( 0, 0);
     124    glTexCoord2f(1.0f, 1.0f); glVertex2f( 0, 100);
     125    glTexCoord2f(0.0f, 1.0f); glVertex2f( 100, 100);
     126    glTexCoord2f(0.0f, 0.0f); glVertex2f( 100, 0);
    127127  glEnd();
    128128
Note: See TracChangeset for help on using the changeset viewer.