Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 25, 2006, 6:46:06 PM (18 years ago)
Author:
bensch
Message:

merged avi_play back to the trunk. command https://svn.orxonox.net/orxonox/branches/avi_play . -r6602:HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/movie_player.h

    r6607 r6731  
    1717
    1818#include "glincl.h"
    19 
    20 //#include "light.h"
    2119#include "texture.h"
    22 //#include "material.h"
    23 //#include "primitive_model.h"
    2420
    2521// include base_object.h since all classes are derived from this one
     
    2925typedef enum MP_STATUS {
    3026  PLAY,
    31         PAUSE,
    32         STOP
     27  PAUSE,
     28  STOP
    3329};
    3430
     
    3733
    3834private:
    39 
    40   //Model* model;
    41   //Material* material;
    4235
    4336  AVFormatContext* format_context;
     
    6154  float fps;
    6255  int duration;
    63   bool loading;
     56  bool mediaLoaded;
    6457
    6558public:
    6659
    67   MoviePlayer(const char* filename);
    68   MoviePlayer();
     60  MoviePlayer(const char* filename = NULL);
    6961  ~MoviePlayer();
    7062
    7163  bool loadMovie(const char* filename);
    7264
    73         void start(float start_time);
    74         void resume();
    75         void pause();
    76         void stop();
     65  void start(float start_time);
     66  void resume();
     67  void pause();
     68  void stop();
    7769
    78         void tick(float dt);
    79         //const void draw();
    80         GLuint getTexture();
     70  void tick(float dt);
     71  GLuint getTexture();
    8172
    82         void setFPS(float fps);
    83         float getFPS();
    84         const MP_STATUS getStatus();
     73  void setFPS(float fps);
     74  float getFPS();
     75  const MP_STATUS getStatus();
    8576  void printInformation();
    8677
    8778private:
    8879
    89   void init();
    9080  void getNextFrame();
    9181  void skipFrame(int frames);
    9282  bool gotoFrame(int frames);
    9383
     84  void unloadMedia();
     85
    9486};
    9587
    96 
    97 
    9888#endif // _MOVIE_PLAYER
Note: See TracChangeset for help on using the changeset viewer.