Ejemplo n.º 1
0
 public void SetClipRect(Rect clipRect, bool validRect)
 {
     if (validRect)
     {
         canvasRenderer.EnableRectClipping(clipRect);
     }
     else
     {
         canvasRenderer.DisableRectClipping();
     }
 }
Ejemplo n.º 2
0
    public static int DisableRectClipping(IntPtr l)
    {
        int result;

        try
        {
            CanvasRenderer canvasRenderer = (CanvasRenderer)LuaObject.checkSelf(l);
            canvasRenderer.DisableRectClipping();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }