Code:
if(RAYDIUM_BVH_DEBUG)
{
glPushMatrix();
raydium_osd_color_change(1,0,0);
raydium_osd_printf_3D(node->x,node->y,node->z,12,0.5,"font2.tga"," %s",TypeToName(node->type));
glPointSize(7);
glBegin(GL_POINTS);
glVertex3f(node->x,node->y,node->z);
glEnd();
glPointSize(1);
glColor3f(1,0,0);
glBegin(GL_LINES);
glVertex3i(node->x,node->y,node->z);
glVertex3f(node->x+5,node->y,node->z);
glEnd();
glColor3f(0,1,0);
glBegin(GL_LINES);
glVertex3i(node->x,node->y,node->z);
glVertex3f(node->x,node->y+5,node->z);
glEnd();
glColor3f(0,0,1);
glBegin(GL_LINES);
glVertex3i(node->x,node->y,node->z);
glVertex3f(node->x,node->y,node->z+5);
glEnd();
glPopMatrix();
}