Drag[en]gine Script Module DragonScript
1.21
|
Immutable video resources. More...
Constructors | |
Video | new (String filename) |
Load video from file. More... | |
static void | loadAsynchron (String filename, ResourceListener listener) |
Load video from file asynchronously. More... | |
Management | |
String | getFilename () |
Normalized filename the video has been loaded from. More... | |
int | getWidth () |
Wwidth in pixels. More... | |
int | getHeight () |
Height in pixels. More... | |
Point | getSize () |
Size in pixels. More... | |
int | getFrameCount () |
Number of frames. More... | |
float | getFrameRate () |
Frame rate. More... | |
float | getPlayTime () |
Play time in seconds. More... | |
bool | equals (Object other) |
Video is equal to another object. More... | |
int | hashCode () |
Hash code for use as dictionary keys. More... | |
static bool | equals (Video video1, Video video2) |
Videos are equal. More... | |
Immutable video resources.
Video resources provide static precanned video data to be used with Animators to produce dynamic videos.
This is a native class. It can not be subclassed.
bool Dragengine.Gui.Video.equals | ( | Object | other | ) |
Videos are equal.
In contrary to equals(Object) this is safe to be called with null values.
String Dragengine.Gui.Video.getFilename | ( | ) |
Normalized filename the video has been loaded from.
int Dragengine.Gui.Video.getFrameCount | ( | ) |
Number of frames.
float Dragengine.Gui.Video.getFrameRate | ( | ) |
Frame rate.
int Dragengine.Gui.Video.getHeight | ( | ) |
Height in pixels.
float Dragengine.Gui.Video.getPlayTime | ( | ) |
Play time in seconds.
Point Dragengine.Gui.Video.getSize | ( | ) |
Size in pixels.
int Dragengine.Gui.Video.getWidth | ( | ) |
Wwidth in pixels.
int Dragengine.Gui.Video.hashCode | ( | ) |
Hash code for use as dictionary keys.
Implements Object.hashCode().
|
static |
Load video from file asynchronously.
Registers a request in the game engine to load an video. Once finished or if the file is already loaded the listener is used to deliver the loaded video or null if the loading failed.
Video Dragengine.Gui.Video.new | ( | String | filename | ) |
Load video from file.
If the video file has been already loaded it is assigned to this object. If the video is not loaded yet the engine loads the video. This call blocks until the video is fully loaded and ready to be used. For asynchronous loading use loadAsynchron(). Multiple objects can point to the same loaded video resource. Once no object instance uses an video file anymore it is released from memory.