Last change
on this file since 6290 was
6290,
checked in by hdavid, 18 years ago
|
branches\avi_play: work on the movie_player
|
File size:
946 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 | |
---|
23 | MoviePlayer* movie_player; |
---|
24 | |
---|
25 | void Framework::moduleInit(int argc, char** argv) |
---|
26 | { |
---|
27 | movie_player = new MoviePlayer(argv[1]); |
---|
28 | |
---|
29 | movie_player->printInformation(); |
---|
30 | } |
---|
31 | |
---|
32 | void Framework::moduleEventHandler(SDL_Event* event) |
---|
33 | { |
---|
34 | |
---|
35 | } |
---|
36 | |
---|
37 | void Framework::moduleTick(float dt) |
---|
38 | { |
---|
39 | movie_player->tick(dt); |
---|
40 | } |
---|
41 | |
---|
42 | void Framework::moduleDraw(void) const |
---|
43 | { |
---|
44 | movie_player->draw(); |
---|
45 | } |
---|
46 | |
---|
47 | |
---|
48 | void Framework::moduleHelp(void) const |
---|
49 | { |
---|
50 | |
---|
51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.