Esempio n. 1
0
 public virtual void SetMat(CSMatrix mat)
 {
     CocoStudioEngineAdapterPINVOKE.CSComControlNode_SetMat(this.swigCPtr, CSMatrix.getCPtr(mat));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
        public virtual PointF TransformPoint(PointF p, CSMatrix mat)
        {
            Vec2 vec2 = new Vec2(CocoStudioEngineAdapterPINVOKE.CSComControlNode_TransformPoint(this.swigCPtr, Vec2.getCPtr(new Vec2(p.X, p.Y)), CSMatrix.getCPtr(mat)), true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(new PointF(vec2.x, vec2.y));
        }
Esempio n. 3
0
        public virtual MatrixNode Mat4ToMatrixNode(CSMatrix mat)
        {
            MatrixNode matrixNode = new MatrixNode(CocoStudioEngineAdapterPINVOKE.CSComControlNode_Mat4ToMatrixNode(this.swigCPtr, CSMatrix.getCPtr(mat)), true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(matrixNode);
        }
Esempio n. 4
0
        public virtual CSMatrix Mat4Identity(CSMatrix pM)
        {
            CSMatrix csMatrix = new CSMatrix(CocoStudioEngineAdapterPINVOKE.CSComControlNode_Mat4Identity(this.swigCPtr, CSMatrix.getCPtr(pM)), true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(csMatrix);
        }
Esempio n. 5
0
        public virtual CSRect RectApplyTransform(Rectangle rect, CSMatrix mat)
        {
            CSRect csRect = new CSRect(CocoStudioEngineAdapterPINVOKE.CSComControlNode_RectApplyTransform(this.swigCPtr, Rect.getCPtr(new Rect((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height)), CSMatrix.getCPtr(mat)), true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(csRect);
        }