/* greebo: Renders the currently active manipulator by setting the render state and * calling the manipulator's render method */ void RadiantSelectionSystem::renderSolid(RenderableCollector& collector, const VolumeTest& volume) const { if (!nothingSelected()) { collector.highlightFaces(false); collector.highlightPrimitives(false); collector.SetState(_state, RenderableCollector::eWireframeOnly); collector.SetState(_state, RenderableCollector::eFullMaterials); _manipulator->render(collector, volume, GetPivot2World()); } }
// Submit renderable geometry void FaceInstance::submitRenderables(RenderableCollector& collector, const VolumeTest& volume, const IRenderEntity& entity) const { if (m_face->intersectVolume(volume)) { collector.PushState(); if (selectedComponents()) { collector.highlightFaces(true); } m_face->submitRenderables(collector, Matrix4::getIdentity(), entity); collector.PopState(); } }