本文整理汇总了C++中OgreWorldPtr::DebugDrawLine方法的典型用法代码示例。如果您正苦于以下问题:C++ OgreWorldPtr::DebugDrawLine方法的具体用法?C++ OgreWorldPtr::DebugDrawLine怎么用?C++ OgreWorldPtr::DebugDrawLine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OgreWorldPtr
的用法示例。
在下文中一共展示了OgreWorldPtr::DebugDrawLine方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addQuad
void OcclusionDebugRenderer::addQuad(const Umbra::Vector3& x0y0, const Umbra::Vector3& x0y1, const Umbra::Vector3& x1y1, const Umbra::Vector3& x1y0, const Umbra::Vector4& color)
{
OgreWorldPtr ogreWorld = renderer_->GetActiveOgreWorld();
if(!ogreWorld.get())
return;
// Nothing to do here
float3 x0y0_, x0y1_, x1y0_, x1y1_;
x0y0_ = Vector3ToFloat3(x0y0);
x0y1_ = Vector3ToFloat3(x0y1);
x1y0_ = Vector3ToFloat3(x1y0);
x1y1_ = Vector3ToFloat3(x1y1);
ogreWorld->DebugDrawLine(x0y0_, x1y0_, Color::Yellow);
ogreWorld->DebugDrawLine(x1y0_, x1y1_, Color::Yellow);
ogreWorld->DebugDrawLine(x1y1_, x0y1_, Color::Yellow);
ogreWorld->DebugDrawLine(x0y1_, x0y0_, Color::Yellow);
}
示例2: addLine
void OcclusionDebugRenderer::addLine(const Umbra::Vector3& start, const Umbra::Vector3& end, const Umbra::Vector4& color)
{
OgreWorldPtr ogreWorld = renderer_->GetActiveOgreWorld();
if(!ogreWorld.get())
return;
float3 start_ = Vector3ToFloat3(start);
float3 end_ = Vector3ToFloat3(end);
ogreWorld->DebugDrawLine(start_, end_, Color::Yellow);
}