Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 18, 2006, 5:25:48 PM (18 years ago)
Author:
bensch
Message:

TRUNK: merged the avi_play branche again

File:
1 edited

Legend:

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

    r6532 r6600  
    1818#include "glincl.h"
    1919
    20 #include "light.h"
     20//#include "light.h"
    2121#include "texture.h"
    22 #include "material.h"
    23 #include "primitive_model.h"
     22//#include "material.h"
     23//#include "primitive_model.h"
    2424
    2525// include base_object.h since all classes are derived from this one
     
    2929typedef enum MP_STATUS {
    3030  PLAY,
    31         PAUSE,
    32         STOP
     31        PAUSE,
     32        STOP
    3333};
    3434
     
    3838private:
    3939
    40   Model* model;
    41   Material* material;
     40  //Model* model;
     41  //Material* material;
    4242
    4343  AVFormatContext* format_context;
     
    5454  int video_stream;
    5555
    56   MP_STATUS status;     
     56  MP_STATUS status;
    5757  float timer;
    5858  int start_frame;
     
    6161  float fps;
    6262  int duration;
    63   bool loading; 
     63  bool loading;
    6464
    6565public:
     
    7171  bool loadMovie(const char* filename);
    7272
    73         void start(float start_time);
    74         void resume();
    75         void pause();
    76         void stop();
     73        void start(float start_time);
     74        void resume();
     75        void pause();
     76        void stop();
    7777
    78         void tick(float dt);
    79         const void draw();
     78        void tick(float dt);
     79        //const void draw();
     80        GLuint getTexture();
    8081
    81         void setFPS(float fps);
    82         float getFPS();
    83         const MP_STATUS getStatus();
     82        void setFPS(float fps);
     83        float getFPS();
     84        const MP_STATUS getStatus();
    8485  void printInformation();
    8586
    8687private:
    87  
     88
    8889  void init();
    8990  void getNextFrame();
Note: See TracChangeset for help on using the changeset viewer.