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); }
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); }