Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

branches/avi_play: frames are displayed correct and fast…took me only 3 days to find out that the only faut was wrong number in the SDL_CreateRGBSurfaceFrom call :-/

File size: 1.3 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: Benjamin Grauer
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 "objModel.h"
23#include "primitive_model.h"
24#include "media_container.h"
25#include <stdlib.h>
26
27#include "resource_manager.h"
28
29Model* obj;
30MediaContainer* movie;
31
32void Framework::moduleInit(int argc, char** argv)
33{
34
35  movie = new MediaContainer(argv[1]);
36
37  // print information about the media file
38  movie->printMediaInformation();
39
40  SDL_Delay(1000);
41
42}
43
44void Framework::moduleEventHandler(SDL_Event* event)
45{
46  switch (event->type)
47    {
48    case SDL_KEYDOWN:
49      switch (event->key.keysym.sym)
50        {
51        case SDLK_i:
52          break;
53        }
54    }
55}
56
57void Framework::moduleTick(float dt)
58{
59  while(movie->getNextFrame() != NULL);
60    movie->saveCurrentFrame(); 
61}
62
63void Framework::moduleDraw(void) const
64{
65
66}
67
68
69void Framework::moduleHelp(void) const
70{
71
72}
Note: See TracBrowser for help on using the repository browser.