Cleanup: GPU_buffers: Remove obsolete debug drawing
This commit is contained in:
parent
f302224e16
commit
e474549da5
|
@ -92,9 +92,6 @@ short GPU_pbvh_buffers_material_index_get(GPU_PBVH_Buffers *buffers);
|
|||
|
||||
bool GPU_pbvh_buffers_has_mask(GPU_PBVH_Buffers *buffers);
|
||||
|
||||
/* debug PBVH draw */
|
||||
void GPU_pbvh_BB_draw(float min[3], float max[3], bool leaf, unsigned int pos);
|
||||
|
||||
void GPU_pbvh_buffers_free(GPU_PBVH_Buffers *buffers);
|
||||
|
||||
void GPU_pbvh_fix_linking(void);
|
||||
|
|
|
@ -1028,70 +1028,6 @@ void GPU_pbvh_buffers_free(GPU_PBVH_Buffers *buffers)
|
|||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Debug
|
||||
* \{ */
|
||||
|
||||
/* debug function, draws the pbvh BB */
|
||||
void GPU_pbvh_BB_draw(float min[3], float max[3], bool leaf, uint pos)
|
||||
{
|
||||
if (leaf) {
|
||||
immUniformColor4f(0.0, 1.0, 0.0, 0.5);
|
||||
}
|
||||
else {
|
||||
immUniformColor4f(1.0, 0.0, 0.0, 0.5);
|
||||
}
|
||||
|
||||
/* TODO(merwin): revisit this after we have mutable VertexBuffers
|
||||
* could keep a static batch & index buffer, change the VBO contents per draw
|
||||
*/
|
||||
|
||||
immBegin(GPU_PRIM_LINES, 24);
|
||||
|
||||
/* top */
|
||||
immVertex3f(pos, min[0], min[1], max[2]);
|
||||
immVertex3f(pos, min[0], max[1], max[2]);
|
||||
|
||||
immVertex3f(pos, min[0], max[1], max[2]);
|
||||
immVertex3f(pos, max[0], max[1], max[2]);
|
||||
|
||||
immVertex3f(pos, max[0], max[1], max[2]);
|
||||
immVertex3f(pos, max[0], min[1], max[2]);
|
||||
|
||||
immVertex3f(pos, max[0], min[1], max[2]);
|
||||
immVertex3f(pos, min[0], min[1], max[2]);
|
||||
|
||||
/* bottom */
|
||||
immVertex3f(pos, min[0], min[1], min[2]);
|
||||
immVertex3f(pos, min[0], max[1], min[2]);
|
||||
|
||||
immVertex3f(pos, min[0], max[1], min[2]);
|
||||
immVertex3f(pos, max[0], max[1], min[2]);
|
||||
|
||||
immVertex3f(pos, max[0], max[1], min[2]);
|
||||
immVertex3f(pos, max[0], min[1], min[2]);
|
||||
|
||||
immVertex3f(pos, max[0], min[1], min[2]);
|
||||
immVertex3f(pos, min[0], min[1], min[2]);
|
||||
|
||||
/* sides */
|
||||
immVertex3f(pos, min[0], min[1], min[2]);
|
||||
immVertex3f(pos, min[0], min[1], max[2]);
|
||||
|
||||
immVertex3f(pos, min[0], max[1], min[2]);
|
||||
immVertex3f(pos, min[0], max[1], max[2]);
|
||||
|
||||
immVertex3f(pos, max[0], max[1], min[2]);
|
||||
immVertex3f(pos, max[0], max[1], max[2]);
|
||||
|
||||
immVertex3f(pos, max[0], min[1], min[2]);
|
||||
immVertex3f(pos, max[0], min[1], max[2]);
|
||||
|
||||
immEnd();
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
void GPU_pbvh_fix_linking()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue