Drag[en]gine Game Engine
1.21
|
Play back video resources. More...
#include <deVideoPlayer.h>
Public Types | |
enum | ePlayState { epsStopped , epsPlaying , epsPaused } |
Play state. More... | |
typedef deTObjectReference< deVideoPlayer > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
deVideo * | GetVideo () const |
Video or NULL if not set. More... | |
void | SetVideo (deVideo *video) |
Set video or NULL if not set. More... | |
bool | GetLooping () const |
Video is looping instead of being played back once. More... | |
void | SetLooping (bool looping) |
Set if video is looping instead of being played back once. More... | |
float | GetPlayFrom () const |
Start play position in seconds. More... | |
float | GetPlayTo () const |
End play position in seconds. More... | |
void | SetPlayRange (float fromTime, float toTime) |
Set play range. More... | |
float | GetPlaySpeed () const |
Play speed. More... | |
void | SetPlaySpeed (float playSpeed) |
Set play speed. More... | |
float | GetPlayPosition () const |
Current play position in seconds. More... | |
void | SetPlayPosition (float position) |
Set current play position in seconds. More... | |
ePlayState | GetPlayState () const |
play state. More... | |
bool | GetPlaying () const |
Video is playing back. More... | |
bool | GetPaused () const |
Video is paused. More... | |
bool | GetStopped () const |
Video is stopped. More... | |
void | SetPlayState (ePlayState playState) |
Set play state. More... | |
void | Play () |
Start playing back if not already playing back. More... | |
void | Stop () |
Stops playing back if not stopped. More... | |
void | Pause () |
Pause playing back if not paused. More... | |
void | Update (float elapsed) |
Update video player. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deVideoPlayer (deVideoPlayerManager *manager) | |
Create video player. More... | |
virtual | ~deVideoPlayer () |
Clean up video player. More... | |
System Peers | |
deBaseGraphicVideoPlayer * | GetPeerGraphic () const |
Graphic system peer. More... | |
void | SetPeerGraphic (deBaseGraphicVideoPlayer *peer) |
Set graphic system peer. More... | |
deBaseAudioVideoPlayer * | GetPeerAudio () const |
Audio system peer. More... | |
void | SetPeerAudio (deBaseAudioVideoPlayer *peer) |
Set audio system peer. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Play back video resources.
Type holding strong reference.
deVideoPlayer::deVideoPlayer | ( | deVideoPlayerManager * | manager | ) |
Create video player.
|
protectedvirtual |
Clean up video player.
|
inline |
Video is looping instead of being played back once.
|
inline |
Video is paused.
|
inline |
Audio system peer.
|
inline |
Graphic system peer.
|
inline |
Start play position in seconds.
|
inline |
Video is playing back.
|
inline |
Current play position in seconds.
|
inline |
Play speed.
|
inline |
play state.
|
inline |
End play position in seconds.
|
inline |
Video is stopped.
|
inline |
Video or NULL if not set.
void deVideoPlayer::Pause | ( | ) |
Pause playing back if not paused.
void deVideoPlayer::Play | ( | ) |
Start playing back if not already playing back.
void deVideoPlayer::SetLooping | ( | bool | looping | ) |
Set if video is looping instead of being played back once.
void deVideoPlayer::SetPeerAudio | ( | deBaseAudioVideoPlayer * | peer | ) |
Set audio system peer.
void deVideoPlayer::SetPeerGraphic | ( | deBaseGraphicVideoPlayer * | peer | ) |
Set graphic system peer.
void deVideoPlayer::SetPlayPosition | ( | float | position | ) |
Set current play position in seconds.
void deVideoPlayer::SetPlayRange | ( | float | fromTime, |
float | toTime | ||
) |
Set play range.
void deVideoPlayer::SetPlaySpeed | ( | float | playSpeed | ) |
Set play speed.
void deVideoPlayer::SetPlayState | ( | ePlayState | playState | ) |
Set play state.
void deVideoPlayer::SetVideo | ( | deVideo * | video | ) |
Set video or NULL if not set.
void deVideoPlayer::Stop | ( | ) |
Stops playing back if not stopped.
void deVideoPlayer::Update | ( | float | elapsed | ) |
Update video player.
Advances the play position if playing back.