JNGL
Easy to use cross-platform 2D game library
|
Ogg Theory video file. More...
#include <jngl/Video.hpp>
Public Member Functions | |
Video (const std::string &filename) | |
Opens OGG Theora video specified by filename. | |
Video (const Video &)=delete | |
Video & | operator= (const Video &)=delete |
Video (Video &&)=delete | |
Video & | operator= (Video &&)=delete |
void | draw () const |
Starts playback if needed and draws the current video frame centered at {0, 0}. | |
int | getWidth () const |
Returns the actual pixel width of the video. | |
int | getHeight () const |
Returns the actual pixel height of the video. | |
bool | finished () const |
Returns true when the video has reached the end. | |
Ogg Theory video file.
Example: