diff options
author | Andre Susano Pinto <andresusanopinto@gmail.com> | 2009-07-12 22:04:10 +0400 |
---|---|---|
committer | Andre Susano Pinto <andresusanopinto@gmail.com> | 2009-07-12 22:04:10 +0400 |
commit | a6b328b82577d3ec1429c02686ea1727e02140c0 (patch) | |
tree | f86eb2e35b316f3409ed503e5923e8fddc7d1841 /source/blender/render/intern/include | |
parent | e264087fad7a55be67d409fe1748d4fc647fba0c (diff) |
*Moved rtbuild to bf_render_raytrace
*Added vbvh - Just a experimental tree type :)
Variable Way BVH - there is no hardcoded number of childs per each Tree Node
- idea is to optimize a tree to reduced the expected number of BB tests even after applying SAH (for that an hardcoded n-way is not enough)
- for now childs are stored on a linked list
Diffstat (limited to 'source/blender/render/intern/include')
-rw-r--r-- | source/blender/render/intern/include/rayobject.h | 11 | ||||
-rw-r--r-- | source/blender/render/intern/include/rayobject_rtbuild.h | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/render/intern/include/rayobject.h b/source/blender/render/intern/include/rayobject.h index de36a1e4888..16ebc537ef9 100644 --- a/source/blender/render/intern/include/rayobject.h +++ b/source/blender/render/intern/include/rayobject.h @@ -29,9 +29,14 @@ #ifndef RE_RAYOBJECT_H #define RE_RAYOBJECT_H +#ifdef __cplusplus +extern "C" { +#endif + #include "RE_raytrace.h" #include <float.h> + /* RayObject A ray object is everything where we can cast rays like: @@ -166,4 +171,10 @@ float RE_rayobject_cost(RayObject *r); #endif + +#ifdef __cplusplus +} +#endif + + #endif diff --git a/source/blender/render/intern/include/rayobject_rtbuild.h b/source/blender/render/intern/include/rayobject_rtbuild.h index a98ed38a581..b80e0868739 100644 --- a/source/blender/render/intern/include/rayobject_rtbuild.h +++ b/source/blender/render/intern/include/rayobject_rtbuild.h @@ -29,8 +29,13 @@ #ifndef RE_RAYOBJECT_RTBUILD_H #define RE_RAYOBJECT_RTBUILD_H +#ifdef __cplusplus +extern "C" { +#endif + #include "rayobject.h" + /* * Ray Tree Builder * this structs helps building any type of tree @@ -88,4 +93,8 @@ float bb_area(float *min, float *max); float bb_volume(float *min, float *max); int bb_largest_axis(float *min, float *max); +#ifdef __cplusplus +} +#endif + #endif |