Graphics: Move scissor box from InstancedRenderable to GraphicsComponent
This commit is contained in:
@@ -9,7 +9,6 @@ namespace Nz
|
||||
{
|
||||
inline InstancedRenderable::InstancedRenderable() :
|
||||
m_aabb(Boxf::Zero()),
|
||||
m_scissorBox(-1, -1, -1, -1),
|
||||
m_renderLayer(0)
|
||||
{
|
||||
}
|
||||
@@ -24,11 +23,6 @@ namespace Nz
|
||||
return m_renderLayer;
|
||||
}
|
||||
|
||||
inline const Recti& InstancedRenderable::GetScissorBox() const
|
||||
{
|
||||
return m_scissorBox;
|
||||
}
|
||||
|
||||
inline void InstancedRenderable::UpdateRenderLayer(int renderLayer)
|
||||
{
|
||||
if (m_renderLayer != renderLayer)
|
||||
@@ -38,15 +32,6 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
inline void InstancedRenderable::UpdateScissorBox(const Recti& scissorBox)
|
||||
{
|
||||
if (m_scissorBox != scissorBox)
|
||||
{
|
||||
m_scissorBox = scissorBox;
|
||||
OnElementInvalidated(this);
|
||||
}
|
||||
}
|
||||
|
||||
inline void InstancedRenderable::UpdateAABB(Boxf aabb)
|
||||
{
|
||||
OnAABBUpdate(this, aabb);
|
||||
|
||||
Reference in New Issue
Block a user