libvisual
0.5.0
|
#include <libvisual/lv_actor.h>
Public Member Functions | |
Actor (Actor const &)=delete | |
Actor & | operator= (Actor const &)=delete |
VisPluginData * | get_plugin () |
Returns the plugin object. More... | |
bool | realize () |
Realizes this Actor. More... | |
SongInfo const * | get_songinfo () |
Returns the song information used by this Actor for display. More... | |
Palette const * | get_palette () |
Returns the colour palette used. More... | |
bool | video_negotiate (VisVideoDepth run_depth, bool noevent, bool forced) |
Configures actor to automatically work with the video target set with set_video(). More... | |
VisVideoDepth | get_supported_depths () |
Returns the set of colour depths natively supported. More... | |
VisVideoAttrOptions const * | get_video_attribute_options () |
void | set_video (VideoPtr const &video) |
Sets the video target for rendering. More... | |
VideoPtr const & | get_video () |
void | run (Audio const &audio) |
Runs this actor. More... | |
Static Public Member Functions | |
static ActorPtr | load (std::string const &name) |
Creates a new Actor with a plugin of a given name. More... | |
Friends | |
void | intrusive_ptr_add_ref (Actor const *actor) |
void | intrusive_ptr_release (Actor const *actor) |
Actor class.
Definition at line 51 of file lv_actor.h.
Palette const * LV::Actor::get_palette | ( | ) |
Returns the colour palette used.
Definition at line 130 of file lv_actor.cpp.
Referenced by run().
VisPluginData * LV::Actor::get_plugin | ( | ) |
Returns the plugin object.
Definition at line 110 of file lv_actor.cpp.
Referenced by run().
SongInfo const * LV::Actor::get_songinfo | ( | ) |
Returns the song information used by this Actor for display.
Definition at line 125 of file lv_actor.cpp.
VisVideoDepth LV::Actor::get_supported_depths | ( | ) |
Returns the set of colour depths natively supported.
Definition at line 202 of file lv_actor.cpp.
Referenced by video_negotiate().
|
static |
Creates a new Actor with a plugin of a given name.
name | Name of plugin to load |
Definition at line 77 of file lv_actor.cpp.
bool LV::Actor::realize | ( | ) |
Realizes this Actor.
Definition at line 115 of file lv_actor.cpp.
void LV::Actor::run | ( | Audio const & | audio | ) |
Runs this actor.
Each call pumps events to the actor for handling and passes in the audio data for visualising.
audio | Audio data to visualise |
Definition at line 217 of file lv_actor.cpp.
void LV::Actor::set_video | ( | VideoPtr const & | video | ) |
Sets the video target for rendering.
video | Video target |
Definition at line 212 of file lv_actor.cpp.
bool LV::Actor::video_negotiate | ( | VisVideoDepth | run_depth, |
bool | noevent, | ||
bool | forced | ||
) |
Configures actor to automatically work with the video target set with set_video().
run_depth | Desired colour depth used for rendering. Use VISUAL_VIDEO_DEPTH_NONE for auto selection |
noevent | Set to TRUE to stop events |
forced | Set to TRUE If run_depth is set |
Definition at line 141 of file lv_actor.cpp.