Jump to content
ivan

Two Input Cop .vfl

Recommended Posts

hm, I guess it's been a while since I worote a COP.

Every time I compile, regardless of what I put, I get a gebnerator COP.

How does one make a two input compooiting COP with .vfl?

Share this post


Link to post
Share on other sites

hrm. It looks like it cannot be done.

hm, I guess it's been a while since I worote a COP.

Every time I compile, regardless of what I put, I get a generator COP.

How does one make a two input compositing COP with .vfl?

Share this post


Link to post
Share on other sites

Hi Ivan,

hmm... I just tried it and it seems to work ok -- though I also don't compile COPs very often, so maybe I'm missing something. Here's what I tried:

A 2-input filter, saved as TestCopFilter.vfl, and compiled with "vcc -l TestCopFilter.otl TestCopFilter.vfl":

#pragma opname TestCopFilter
#pragma oplabel TestCopFilter
#pragma opmininputs 2
#pragma opmaxinputs 2
cop2 TestCopFilter () {
	R = R;
	G = G;
	B = B;
}

And a max-2-input "generator", saved as TestCopGen.vfl, and compiled with "vcc -l TestCopGen.otl TestCopGen.vfl":

#pragma opname TestCopGen
#pragma oplabel TestCopGen
#pragma opmininputs 0
#pragma opmaxinputs 2
cop2 TestCopGen () {
	R = G = 1;
}

It would seem that the only distinguishing aspect of a generator is that its "opminimputs" must be 0 (and the restrictions to what you can do inside that follow from that) -- but I'm just speculating. Anyhoo... seems to work over here.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×