Graphics/Widgets: Add support for scissoring
This commit is contained in:
@@ -23,6 +23,11 @@ namespace Nz
|
||||
return m_renderLayer;
|
||||
}
|
||||
|
||||
inline const Recti& InstancedRenderable::GetScissorBox() const
|
||||
{
|
||||
return m_scissorBox;
|
||||
}
|
||||
|
||||
inline void InstancedRenderable::UpdateRenderLayer(int renderLayer)
|
||||
{
|
||||
if (m_renderLayer != renderLayer)
|
||||
@@ -32,6 +37,15 @@ 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