![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
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. | |
| 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.
| filename | Video file name |
| frameCallback | Function to call each video frame |
| game | Pointer to the Game instance |
| dx | An offset on the x axis for the video to be rendered |
| dy | An offset on the y axis for the video to be rendered |
| void OpenXcom::FlcPlayer::play | ( | bool | skipLastFrame | ) |
Play the loaded file; set flc.mainScreen first!
Starts decoding and playing the FLI/FLC file.
1.8.14