Hmm. I could’ve just hardcoded all the variables of course, but I decided to intentionally generate all the boilerplate constants to make the generated code more easy to read.
I use simple reflection to analyze the template class, extracting the fields for it.
Oh, and execute(int fbo) (or whatever args the generator puts in there) is supposed to be private. x___x Gonna go fix that. =P That should be enough to make it clear that the private execute() method is meant to do work.