MfxRegister#
-
MfxRegister(...)#
Registration must be performed at the very end of the main file. Example:
MfxRegister( MyFirstEffect, AnotherEffect, AThirdEffect );
There can be an arbitrary number of arguments, and all of them are expected to be subclasses of MfxEffect.
Dev note: It is a bit unfortunate for readability that all this has to be a macro, but it is important to have
gEffects
defined beforesetHost<>
andmainEntry<>
so I could not figure out any other way.