debugdraw: Added cylinder.

This commit is contained in:
Branimir Karadžić
2016-04-06 22:21:46 -07:00
parent 3d81ae8219
commit 931c6ed0f6
3 changed files with 78 additions and 5 deletions

View File

@@ -187,12 +187,18 @@ class DebugDrawApp : public entry::AppI
ddPop();
ddPush();
{
ddSetLod(UINT8_MAX);
float from[3] = { -11.0f, 4.0f, 0.0f };
float to[3] = { -13.0f, 6.0f, 1.0f };
ddDrawCone(from, to, 0.5f );
}
{
float from[3] = { -11.0f, 4.0f, 0.0f };
float to[3] = { -13.0f, 6.0f, 1.0f };
ddDrawCone(from, to, 1.0f );
}
{
float from[3] = { -9.0f, 2.0f, -1.0f };
float to[3] = { -11.0f, 4.0f, 0.0f };
ddDrawCylinder(from, to, 0.5f );
}
ddPop();
ddDrawOrb(-11.0f, 0.0f, 0.0f, 1.0f);