WiiFlow_Lite/source/gui/WiiMovie.hpp

42 lines
669 B
C++
Raw Normal View History

2012-01-21 21:57:41 +01:00
#ifndef WII_MOVIE_H_
#define WII_MOVIE_H_
#include "gcvid.h"
#include "Timer.h"
#include "texture.hpp"
using namespace std;
class WiiMovie
{
public:
void Init(const char * filepath);
void DeInit();
bool Play(TexData *Background, bool loop = false);
void Stop();
bool Continue();
volatile bool loaded;
volatile bool rendered;
protected:
static void * UpdateThread(void *arg);
void FrameLoadLoop();
void ReadNextFrame();
void LoadNextFrame();
2012-01-21 21:57:41 +01:00
u8 * ThreadStack;
lwp_t ReadThread;
2012-01-21 21:57:41 +01:00
ThpVideoFile Video;
FILE *vFile;
float fps;
Timer PlayTime;
u32 VideoFrameCount;
TexData *Frame;
bool Playing;
bool ExitRequested;
2012-01-21 21:57:41 +01:00
};
extern WiiMovie movie;
2012-01-21 21:57:41 +01:00
#endif