OpenXcom  1.0
Open-source clone of the original X-Com
Classes | Public Member Functions | List of all members
OpenXcom::FlcPlayer Class Reference

Public Member Functions

bool init (const char *filename, void(*frameCallBack)(), Game *game, bool useAudio, int dx, int dy)
 Open FLC or FLI file, read header, prepare to play it. More...
 
void play (bool skipLastFrame)
 Play the loaded file; set flc.mainScreen first! More...
 
void deInit ()
 Free memory, free love, etc.
 
void delay (Uint32 milliseconds)
 Delay player at the end.
 

Member Function Documentation

◆ init()

bool OpenXcom::FlcPlayer::init ( const char *  filename,
void(*)()  frameCallBack,
Game game,
bool  useInternalAudio,
int  dx,
int  dy 
)

Open FLC or FLI file, read header, prepare to play it.

Initialize data structures needed buy the player and read the whole file into memory.

Parameters
filenameVideo file name
frameCallbackFunction to call each video frame
gamePointer to the Game instance
dxAn offset on the x axis for the video to be rendered
dyAn offset on the y axis for the video to be rendered

◆ play()

void OpenXcom::FlcPlayer::play ( bool  skipLastFrame)

Play the loaded file; set flc.mainScreen first!

Starts decoding and playing the FLI/FLC file.


The documentation for this class was generated from the following files: