code-google-com / slum

Automatically exported from code.google.com/p/slum
0 stars 0 forks source link

modify template registration mechanism to allow for template derivation #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Template registration in slum does run-time code evaluation at the same time it 
register each one of the templates, linearly.

This makes impossible to derive a template from another. 

We need to modify the registration mechanism to allow the code evaluation to 
happen before the template registration, so when a class is created, ALL the 
template class code already exists.

This is important to create derivative code of base shaders, like occlusion, 
bake, etc.

Original issue reported on code.google.com by hra...@gmail.com on 7 Dec 2010 at 8:17