Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 6286 was 6286, checked in by hdavid, 19 years ago

branches\avi_play: added new file to the importer subproject

File size: 1.1 KB
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 "framework.h"
19
20#include "light.h"
21
22#include "media_container.h"
23#include <stdlib.h>
24
25#include "resource_manager.h"
26
27MediaContainer* movie;
28
29void Framework::moduleInit(int argc, char** argv)
30{
31
32  movie = new MediaContainer(argv[1]);
33
34  // print information about the media file
35  movie->printMediaInformation();
36
37  SDL_Delay(1000);
38
39}
40
41void Framework::moduleEventHandler(SDL_Event* event)
42{
43
44}
45
46void Framework::moduleTick(float dt)
47{
48  while(movie->getNextFrame() != NULL);
49    movie->saveCurrentFrame(); 
50}
51
52void Framework::moduleDraw(void) const
53{
54
55}
56
57void Framework::moduleHelp(void) const
58{
59
60}
Note: See TracBrowser for help on using the repository browser.