Beispiel #1
0
	int Fixture::setFilter(State & state, b2Fixture * object){
		Filter * interfaceFilter = state.getInterface<Filter>("LuaBox2D_Filter");
		b2Filter * filter = interfaceFilter->get(1);
		if (filter != nullptr){
			object->SetFilterData(*filter);
		}
		return 0;
	}
void Controller::setIn(int in)
{
    if (m_producer && m_producer->is_valid()) {
        m_producer->set("in", in);

        // Adjust all filters that have an explicit duration.
        int n = m_producer->filter_count();
        for (int i = 0; i < n; i++) {
            Filter* filter = m_producer->filter(i);
            if (filter && filter->is_valid() && filter->get_length() > 0) {
                if (QString(filter->get(kShotcutFilterProperty)).startsWith("fadeIn")
                        || QString(filter->get("mlt_service")) == "webvfx") {
                    filter->set_in_and_out(in, in + filter->get_length() - 1);
                }
            }
            delete filter;
        }
    }
}
Beispiel #3
0
void App::update(void) {
	Values[0] = filter.get();
}