public void AddClippable(IClippable clippable) { if (clippable != null) { if (!m_ClipTargets.Contains(clippable)) { m_ClipTargets.Add(clippable); } clippable.SetClipRect(m_LastClipRectCanvasSpace, m_LastClipRectValid); clippable.Cull(m_LastClipRectCanvasSpace, m_LastClipRectValid); } }
public void AddClippable(IClippable clippable) { if (clippable != null) { if (!this.m_ClipTargets.Contains(clippable)) { this.m_ClipTargets.Add(clippable); } clippable.SetClipRect(this.m_LastClipRectCanvasSpace, this.m_LastClipRectValid); clippable.Cull(this.m_LastClipRectCanvasSpace, this.m_LastClipRectValid); } }
/// <summary> /// /// <para> /// Add a [IClippable]] to be tracked by the mask. /// </para> /// /// </summary> /// <param name="clippable"/> public void AddClippable(IClippable clippable) { if (clippable == null) { return; } if (!this.m_ClipTargets.Contains(clippable)) { this.m_ClipTargets.Add(clippable); } clippable.SetClipRect(this.m_LastClipRectCanvasSpace, this.m_LastClipRectValid); clippable.Cull(this.m_LastClipRectCanvasSpace, this.m_LastClipRectValid); }
public static int Cull(IntPtr l) { int result; try { IClippable clippable = (IClippable)LuaObject.checkSelf(l); Rect clipRect; LuaObject.checkValueType <Rect>(l, 2, out clipRect); bool validRect; LuaObject.checkType(l, 3, out validRect); clippable.Cull(clipRect, validRect); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public void AddClippable(IClippable clippable) { if (clippable == null) return; if (!m_ClipTargets.Contains(clippable)) m_ClipTargets.Add(clippable); clippable.SetClipRect(m_LastClipRectCanvasSpace, m_LastClipRectValid); clippable.Cull(m_LastClipRectCanvasSpace, m_LastClipRectValid); }