![]() |
Xors3d Engine
|
Functions | |
| void | xCloseMovie (xVideoFile *video) |
| Closes previously opened video file. | |
| void | xDrawMovie (xVideoFile *video, int x=0, int y=0, int width=-1, int height=-1) |
| Draws video file on to the screen. | |
| float | xMovieCurrentTime (xVideoFile *video) |
| Returns video file current time. | |
| int | xMovieHeight (xVideoFile *video) |
| Returns video file height. | |
| float | xMovieLength (xVideoFile *video) |
| Returns video file length in seconds. | |
| void | xMoviePause (xVideoFile *video) |
| Pause video file playing. | |
| int | xMoviePlaying (xVideoFile *video) |
| Returns true if the specified video file is playing. | |
| void | xMovieResume (xVideoFile *video) |
| Resume video file playing. | |
| void | xMovieSeek (xVideoFile *video, float time, bool relative=false) |
| Sets playback position for the specified video file. | |
| Texture * | xMovieTexture (xVideoFile *video) |
| Returns texture that represent current video frame. | |
| int | xMovieWidth (xVideoFile *video) |
| Returns video file width. | |
| xVideoFile * | xOpenMovie (const char *path) |
| Opens video file and starts its playback. | |
| xVideoFile* xOpenMovie | ( | const char * | path | ) |
Opens video file and starts its playback.
For video playback used DirectShow, so you will need to ensure the correct codecs are installed.
| path | Video file path |
| void xCloseMovie | ( | xVideoFile * | video | ) |
Closes previously opened video file.
| video | Video file handle |
| void xDrawMovie | ( | xVideoFile * | video, |
| int | x = 0, |
||
| int | y = 0, |
||
| int | width = -1, |
||
| int | height = -1 |
||
| ) |
Draws video file on to the screen.
| video | Video file handle |
| x | Position on the x-axis of top left point of movie |
| y | Position on the y-axis of top left point of movie |
| width | Width of movie |
| height | Height of movie |
| int xMovieWidth | ( | xVideoFile * | video | ) |
Returns video file width.
| video | Video file handle |
| int xMovieHeight | ( | xVideoFile * | video | ) |
Returns video file height.
| video | Video file handle |
| int xMoviePlaying | ( | xVideoFile * | video | ) |
Returns true if the specified video file is playing.
| video | Video file handle |
| void xMovieSeek | ( | xVideoFile * | video, |
| float | time, | ||
| bool | relative = false |
||
| ) |
Sets playback position for the specified video file.
| video | Video file handle |
| time | Playback time in seconds |
| relative | If true - playback time will set relative to the current position |
| float xMovieLength | ( | xVideoFile * | video | ) |
Returns video file length in seconds.
| video | Video file handle |
| float xMovieCurrentTime | ( | xVideoFile * | video | ) |
Returns video file current time.
| video | Video file handle |
| void xMoviePause | ( | xVideoFile * | video | ) |
Pause video file playing.
| video | Video file handle |
| void xMovieResume | ( | xVideoFile * | video | ) |
Resume video file playing.
| video | Video file handle |
| Texture* xMovieTexture | ( | xVideoFile * | video | ) |
Returns texture that represent current video frame.
| video | Video file handle |