- added new lua method to play video's in scenarios:

playStaticVideo
This commit is contained in:
Mark Vejvoda
2012-05-22 06:17:56 +00:00
parent 8ba7fd0fa0
commit 8fd436b612
8 changed files with 281 additions and 2 deletions

View File

@@ -1339,7 +1339,11 @@ bool VideoPlayer::playFrame(bool swapBuffers) {
#else
const double HEIGHT_MULTIPLIER = 0.80;
const double WIDTH_MULTIPLIER = 0.60;
// const double HEIGHT_MULTIPLIER = 1.0;
// const double WIDTH_MULTIPLIER = 1.0;
#endif
glBegin(GL_TRIANGLE_STRIP);
glTexCoord2i(0, 1);
glVertex2i(ctxPtr->x, ctxPtr->y + ctxPtr->height * HEIGHT_MULTIPLIER);