Matt Williams
bef6a7746e
Add const qualifiers to variables where it makes sense.
2012-11-21 15:23:45 +00:00
Matt Williams
7d28122b13
Add some documentation to the raycast functions.
...
Since these are now functions and not in a class there's no obvious
encapsulation for the two related functions. Previously they were
only available in the PolyVox namespace documentation where they were
hidden among lots of other things. Adding the \file command to
Raycast.h allows up to add comments to that page (_raycast_8h.html)
and have that as the central location for the raycast docs.
There still needs to be a comment about the form that the callback
must take (return type and arguments) including the fact that both
functors and lambdas work.
2012-10-25 22:49:36 +01:00
p265186
816fadbde1
Linux compile fixes.
2012-10-08 17:02:03 +02:00
David Williams
c8ba433b88
Replaced temporary use of MyClassname.
2012-10-05 16:53:08 +02:00
David Williams
bedd09af18
Removing old raycasting code.
2012-10-05 16:49:39 +02:00
Matt Williams
11f91fbbc4
Fix some compiler warnings about initialisation order.
2012-06-20 23:56:37 +01:00
unknown
9db04f38bc
Removed use of template template parameters from Raycast and AmbientOcclusionCalculator.
2012-05-31 13:31:42 +02:00
unknown
d9192270b6
Added callback function to Raycast, which is used to determine when a ray should stop.
2012-03-15 16:52:54 +01:00
Matt Williams
8e4135ad41
Add newlines to end of files to silence compiler warnings
2012-02-27 23:03:36 +00:00
unknown
01af6b938a
Made it more obvious that the length of a raycast direction vector is important.
2012-01-27 10:01:44 +01:00
David Williams
a82dc7f1ca
Added optimization to doRaycast().
2012-01-13 22:23:50 +00:00
David Williams
8b866c9c47
Changed abs() to std::abs() in a few places.
2012-01-05 21:01:23 +00:00
David Williams
63d8c4c083
Merge branch 'master' of git@gitorious.org:polyvox/polyvox.git
...
Conflicts:
library/PolyVoxCore/include/PolyVoxCore/Raycast.inl
2011-09-24 11:11:09 +01:00
Matt Williams
e4535b1255
Add previousVoxel to raycast result.
...
Thanks to Sceptrix for the patch
http://thermite3d.org/phpBB3/viewtopic.php?t=243
2011-09-21 00:19:35 +02:00
David Williams
ddc54e0862
Raycast now track previous voxel, for working out which direction you came from.
2011-09-20 18:38:13 +01:00
David Williams
894455e35f
Tidying up of headers and #includes.
2011-09-04 12:12:30 +01:00
David Williams
834aa5d6c3
Warning fixes for GCC 4.6.
2011-07-04 22:21:27 +01:00
David Williams
528cb73771
Moved headers into subdirectories.
2011-05-17 22:27:46 +01:00