本文整理汇总了C++中Box::GetHeight方法的典型用法代码示例。如果您正苦于以下问题:C++ Box::GetHeight方法的具体用法?C++ Box::GetHeight怎么用?C++ Box::GetHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Box
的用法示例。
在下文中一共展示了Box::GetHeight方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Render
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);
}
示例2: compareBoxes
void compareBoxes(Box b)
{
ASSERT_EQ(b.getVertex(0), expected->getVertex(0));
ASSERT_EQ(b.GetWidth(), expected->GetWidth());
ASSERT_EQ(b.GetHeight(), expected->GetHeight());
}