Example #1
0
	static void RenderDebugPolygon(void* userData,
		int alVertexCount, const dFloat* apFaceVertex, int alId)
	{
		int i;

		i = alVertexCount - 1;
		cVector3f vP0(apFaceVertex[i * 3 + 0], apFaceVertex[i * 3 + 1], apFaceVertex[i * 3 + 2]);
		for (i = 0; i < alVertexCount; ++i)
		{
			cVector3f vP1 (apFaceVertex[i * 3 + 0], apFaceVertex[i * 3 + 1], apFaceVertex[i * 3 + 2]);

			gpLowLevelGraphics->DrawLine(vP0, vP1,gDebugColor);

			vP0 = vP1;
		}
	}
Example #2
0
	static void RenderDebugPolygon(void *a_pVoid,
		int a_lVertexCount, const dFloat *a_pFaceVertex, int a_lId)
	{
		int i;

		i = a_lVertexCount - 1;

		cVector3f vP0(a_pFaceVertex[i * 3 + 0], a_pFaceVertex[i * 3 + 1], a_pFaceVertex[i * 3 + 2]);
		for (int i = 0; i < a_lVertexCount; ++i)
		{
			cVector3f vP1(a_pFaceVertex[i * 3 + 0], a_pFaceVertex[i * 3 + 1], a_pFaceVertex[i * 3 + 2]);

			g_pLowLevelGraphics->DrawLine(vP0, vP1, g_DebugColor);

			vP0 = vP1;
		}
	}