Browse Source

fixes

debug draw fixes are really un-numerous in ze lol, it seems
legacy
touky 8 years ago
parent
commit
6c2aee32a4
2 changed files with 2 additions and 3 deletions
  1. +1
    -1
      doc/samples/btphystest.cpp
  2. +1
    -2
      doc/samples/meshviewer/meshviewer.cpp

+ 1
- 1
doc/samples/btphystest.cpp View File

@@ -414,7 +414,7 @@ void BtPhysTest::TickGame(float seconds)
return;
}

Debug::DrawSetupSegment(1.f);
auto context = Debug::DrawContext::New(Color::white, 1.f);
Debug::DrawGrid(vec3::zero, vec3::axis_x, vec3::axis_y, vec3::axis_z, 10.f);

if (m_controller->WasKeyReleasedThisFrame(BtPhysTestKeyInput::KEY_QUIT))


+ 1
- 2
doc/samples/meshviewer/meshviewer.cpp View File

@@ -384,8 +384,7 @@ void MeshViewer::TickDraw(float seconds, Scene &scene)

//Draw gizmos & grid
Debug::DrawGizmo(vec3::zero, vec3::axis_x, vec3::axis_y, vec3::axis_z, 10.f);
Debug::DrawSetupColor(Color::white);
Debug::DrawSetupSegment(1.f);
auto context = Debug::DrawContext::New(Color::white);
Debug::DrawGrid(vec3::zero, vec3::axis_x, vec3::axis_y, vec3::axis_z, 10.f);

/** OLD STUFF **/


Loading…
Cancel
Save