From d2a326076342845fc5e0bcfc4ea10b09ce86242e Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 30 Apr 2014 23:42:58 +0300 Subject: Add PBVH debug display, where we can see the PBVH node bounding boxes. To enable enter debug value 14. Leaf nodes are green while container nodes are red. --- source/blender/gpu/GPU_buffers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/gpu/GPU_buffers.h') diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 7ca1c878448..6c7945d69a2 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -194,6 +194,10 @@ void GPU_update_grid_pbvh_buffers(GPU_PBVH_Buffers *buffers, struct CCGElem **gr void GPU_draw_pbvh_buffers(GPU_PBVH_Buffers *buffers, DMSetMaterial setMaterial, bool wireframe); +void GPU_draw_pbvh_BB(float min[3], float max[3], bool leaf); +void GPU_end_draw_pbvh_BB(void); +void GPU_init_draw_pbvh_BB(void); + bool GPU_pbvh_buffers_diffuse_changed(GPU_PBVH_Buffers *buffers, struct GSet *bm_faces, bool show_diffuse_color); void GPU_free_pbvh_buffers(GPU_PBVH_Buffers *buffers); -- cgit v1.2.3