Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/avi_play/src/subprojects/importer/movie_player_test.cc @ 6317

Last change on this file since 6317 was 6317, checked in by hdavid, 18 years ago

branches\avi_play: MediaContainer returns a texture not a surface, it's faster. MoviePlayer can display the textures, playspeed not yet implemented

File size: 947 bytes
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: David Hasenfratz
13   co-programmer: ...
14
15   this file extends the framework file, so it renders what i want.
16*/
17
18#include <stdlib.h>
19
20#include "framework.h"
21#include "movie_player.h"
22
23MoviePlayer* movie_player;
24
25void Framework::moduleInit(int argc, char** argv)
26{
27  movie_player = new MoviePlayer(argv[1]);
28
29  movie_player->printInformation();
30}
31
32void Framework::moduleEventHandler(SDL_Event* event)
33{
34
35}
36
37void Framework::moduleTick(float dt)
38{ 
39  movie_player->tick(dt);
40}
41
42void Framework::moduleDraw(void) const
43{
44  movie_player->draw();
45}
46
47
48void Framework::moduleHelp(void) const
49{
50
51}
Note: See TracBrowser for help on using the repository browser.