Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

scaled, so it is not a mirror of its own

File:
1 edited

Legend:

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

    r6600 r6604  
    2121#include "load_param.h"
    2222#include "resource_manager.h"
     23#include "state.h"
    2324
    2425
     
    121122
    122123  glBegin(GL_QUADS);
    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);
     124    glTexCoord2f(0.0f, 0.0f); glVertex2f( 0, 0);
     125    glTexCoord2f(0.0f, 1.0f); glVertex2f( 0, State::getResY());
     126    glTexCoord2f(1.0f, 1.0f); glVertex2f( State::getResX(), State::getResY());
     127    glTexCoord2f(1.0f, 0.0f); glVertex2f( State::getResX(), 0);
    127128  glEnd();
    128129
     
    139140
    140141  // calculate time difference in milliseconds (Uint32)
    141   this->dt = currentFrame - this->lastFrame;
     142  this->dt = currentFrame - this->lastFrame; 
    142143  // calculate time difference in seconds (float)
    143144  this->dts = (float)this->dt / 1000.0f;
Note: See TracChangeset for help on using the changeset viewer.