JosephCottam / AbstractRendering

Bin-based rendering...for the win!
Other
52 stars 6 forks source link

Convert transfer "Specialization" into a function #27

Closed JosephCottam closed 11 years ago

JosephCottam commented 11 years ago

Not a bug...but annoying the way it is currently done with mutation.

Transfer specialization should return a new transfer function that is ready to run.

An unspecialized transfer function that requires specialization to execute properly should throw an error on use.

A specialized transfer function should still respond to specialize as-if it were unspecialized (chained specialization seems uncool to me).