Graphics: Move scissor box from InstancedRenderable to GraphicsComponent

This commit is contained in:
Jérôme Leclercq
2022-02-21 20:44:54 +01:00
parent 29c798a683
commit cc0fc53bd3
16 changed files with 38 additions and 38 deletions

View File

@@ -271,7 +271,7 @@ namespace Nz
{
}
bool BaseWidget::OnKeyPressed(const WindowEvent::KeyEvent& key)
bool BaseWidget::OnKeyPressed(const WindowEvent::KeyEvent& /*key*/)
{
return false;
}
@@ -390,10 +390,7 @@ namespace Nz
for (WidgetEntity& widgetEntity : m_entities)
{
if (GraphicsComponent* gfx = registry.try_get<GraphicsComponent>(widgetEntity.handle))
{
for (const auto& renderable : gfx->GetRenderables())
renderable.renderable->UpdateScissorBox(fullBounds);
}
gfx->UpdateScissorBox(fullBounds);
}
}
}