From df304a5bb86c9e3edbf5e837c603cb29f50f8e43 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Sat, 12 May 2018 20:36:23 -0300 Subject: [PATCH] highlight features --- examples/testbed/tests/convex_hull.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/examples/testbed/tests/convex_hull.h b/examples/testbed/tests/convex_hull.h index 35d8282..45f6577 100644 --- a/examples/testbed/tests/convex_hull.h +++ b/examples/testbed/tests/convex_hull.h @@ -93,7 +93,7 @@ public: for (u32 i = 0; i < m_hull.vertexCount; ++i) { - b3Color solidColor(1.0f, 1.0f, 1.0f, 0.75f); + b3Color solidColor(0.0f, 1.0f, 0.0f, 0.75f); g_draw->DrawPoint(m_hull.vertices[i], 4.0f, solidColor); } @@ -103,17 +103,6 @@ public: g_draw->DrawPoint(m_points[i], 4.0f, solidColor); } - for (u32 i = 0; i < m_hull.edgeCount; i += 2) - { - const b3HalfEdge* edge = m_hull.GetEdge(i); - const b3HalfEdge* twin = m_hull.GetEdge(i + 1); - - b3Vec3 v1 = m_hull.GetVertex(edge->origin); - b3Vec3 v2 = m_hull.GetVertex(twin->origin); - - //g_draw->DrawSegment(v1, v2, b3Color_black); - } - g_draw->Flush(); { @@ -139,7 +128,7 @@ public: c += v1; ++vn; - b3Color solidColor(1.0f, 0.0f, 0.0f, 1.0f); + b3Color solidColor(0.0f, 0.0f, 1.0f, 1.0f); g_draw->DrawSegment(v1, v2, solidColor); g_draw->DrawString(b3Color_white, v1, "v%d", vn); @@ -173,10 +162,9 @@ public: b3Vec3 v3 = m_hull.GetVertex(i3); b3Color solidColor(1.0f, 1.0f, 1.0f, 0.25f); - if (i == m_selection) { - solidColor.a = 1.0f; + solidColor.a = 0.75f; } g_draw->DrawSolidTriangle(n, v1, v2, v3, solidColor);