diff options
Diffstat (limited to '3rdparty/bgfx/examples/29-debugdraw/debugdraw.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/29-debugdraw/debugdraw.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/29-debugdraw/debugdraw.cpp b/3rdparty/bgfx/examples/29-debugdraw/debugdraw.cpp index 4efcd80b882..a1ffa395bed 100644 --- a/3rdparty/bgfx/examples/29-debugdraw/debugdraw.cpp +++ b/3rdparty/bgfx/examples/29-debugdraw/debugdraw.cpp @@ -152,12 +152,12 @@ class DebugDrawApp : public entry::AppI ddDraw(sphere); ddSetWireframe(false); - ddSetColor(0xf0ffc0ff); + ddSetColor(0xc0ffc0ff); sphere.m_center[0] = -2.0f; ddSetLod(2); ddDraw(sphere); - ddSetColor(0xc0f0ffff); + ddSetColor(0xa0f0ffff); sphere.m_center[0] = -4.0f; ddSetLod(1); ddDraw(sphere); @@ -198,6 +198,12 @@ class DebugDrawApp : public entry::AppI float to[3] = { -11.0f, 4.0f, 0.0f }; ddDrawCylinder(from, to, 0.5f ); } + + { + float from[3] = { 0.0f, 7.0f, 0.0f }; + float to[3] = { -6.0f, 7.0f, 0.0f }; + ddDrawCylinder(from, to, 0.5f, true); + } ddPop(); ddDrawOrb(-11.0f, 0.0f, 0.0f, 1.0f); |