diff options
author | 2016-08-06 14:20:16 +0200 | |
---|---|---|
committer | 2016-08-06 14:20:16 +0200 | |
commit | 3917850b6197950e5671f4d3b9cb0b9c921b798d (patch) | |
tree | 503b9690868a7c238ba10d73b5c6bece7ca8c338 /3rdparty/bgfx/examples/29-debugdraw/debugdraw.cpp | |
parent | 057474989c1a92e9e935dbc8cb9d233ba3a4ea3a (diff) |
Update BX and BGFX (nw)
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); |