MfxRegister

This document currently is a largely undocumented draft so it is more informational to refer to the C API at the moment: Open Mesh Effect API Reference.

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 before setHost<> and mainEntry<> so I could not figure out any other way.