Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2005, 2:24:13 PM (20 years ago)
Author:
hdavid
Message:

branches\avi_play: MediaContainer returns a texture not a surface, it's faster. MoviePlayer can display the textures, playspeed not yet implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/lib/graphics/importer/media_container.h

    r6290 r6317  
    2020#include "base_object.h"
    2121
     22#include "glincl.h"
     23
    2224/* using namespace std is default, this needs to be here */
    2325using namespace std;
     
    3032  double fps;
    3133  SDL_Surface* surface;
     34  GLuint texture;
    3235  uint8_t* data;
    3336
     
    4447  int video_stream;
    4548  int duration;
     49  int frame_num;
    4650
    47   vector<SDL_Surface*>    surface_list;
     51  vector<GLuint>    texture_list;
    4852
    4953public:
     
    5458
    5559  void init();
    56   SDL_Surface* getFrame(int frame_number);
    57   SDL_Surface* getNextFrame();
    58   vector<SDL_Surface*> getFrameList();
     60  GLuint getFrame(int frame_number);
     61  GLuint getNextFrame();
     62  vector<GLuint> getFrameList();
    5963  void loadMedia(const char* filename);
    6064
Note: See TracChangeset for help on using the changeset viewer.