Matt Williams bb87e9e628 Fix Ambient Occlusion Calculator to accept functors, functions and lambdas
By changing the 'pass by value' to be a 'pass by const reference' (and
adding some const qualifiers) the calculator can take any of the three
types.

Performance could be improved further using C++11 perfect forwarding to
pass the function on without changing a thing. I added a comment to remind
us of this.

Also added a test for passing a function and a (commented out) test for
passing a lambda.
2012-10-28 15:41:53 +00:00
..
2011-07-02 00:57:41 +01:00
2012-02-23 17:08:00 +01:00
2010-02-26 16:11:13 +00:00