Added debug circle rendering (extended OglDebugLine to OglDebugShape, created new function KX_RasterizerDrawDebugCircle)

This commit is contained in:
Nick Samarin
2010-06-10 00:25:04 +00:00
parent 0183d55108
commit 12b33ca099
7 changed files with 105 additions and 28 deletions

View File

@@ -156,6 +156,13 @@ void KX_RasterizerDrawDebugLine(const MT_Vector3& from,const MT_Vector3& to,cons
gp_Rasterizer->DrawDebugLine(from,to,color);
}
void KX_RasterizerDrawDebugCircle(const MT_Vector3& center, const MT_Scalar radius, const MT_Vector3& color,
const MT_Vector3& normal, int nsector)
{
if (gp_Rasterizer)
gp_Rasterizer->DrawDebugCircle(center, radius, color, normal, nsector);
}
#ifndef DISABLE_PYTHON
static PyObject *gp_OrigPythonSysPath= NULL;