libvisual
libvisual copied to clipboard
LV: Replacement for LV::Bin: LV::Sequence
trafficstars
Proposed API:
class Sequence {
public:
// Constructor
VisSequence ();
// Destructor
~VisSequence ();
// Run
void run ();
// Set input driver
bool set_input (std::string const& input_name);
// Set actor (immediate change, no transitions)
bool set_actor (std::string const& actor_name);
// Set actor (transition with a morph plugin in the given time)
bool set_actor (std::string const& actor_name, Time const& time, std::string const& morph_name);
};
I propose using VisDirector instead (VisSequence doesn't really cover the "contains everything" meaning of "bin")
Updated the proposed API.
LV::Sequence must not be thought of as a container ('bin') of any kind. The rename is only done because there is much shared code with LV::Bin.