void Controls::Render(CSceneManager2D *SceneManager2D) { if (c_state == ROTATION && Application::Button_Right) { for (unsigned int i = 0; i < trajectoryFeedback.size(); ++i) { SceneManager2D->RenderMeshIn2D(trajPoint, false, 5, 5, trajectoryFeedback[i].x, trajectoryFeedback[i].y, 0, 0, -2.5f, -2.5f); } } if (SelectedGO && !SelectedActive) { SelectedGO->render(SceneManager2D); } if (SelectedGO && correct == false) { Box* temp = (Box*)SelectedGO->getRigidBody()->GetCollisionCompt(); SceneManager2D->RenderMeshIn2D(feedback, false, temp->GetWidth(), temp->GetHeight(), temp->GetOrigin().x - 23, temp->GetOrigin().y - 23); } cursor->Render(SceneManager2D); }
void compareBoxes(Box b) { ASSERT_EQ(b.getVertex(0), expected->getVertex(0)); ASSERT_EQ(b.GetWidth(), expected->GetWidth()); ASSERT_EQ(b.GetHeight(), expected->GetHeight()); }