Example #1
0
 public CSVectorPointEnumerator(CSVectorPoint collection)
 {
     this.collectionRef = collection;
     this.currentIndex  = -1;
     this.currentObject = null;
     this.currentSize   = this.collectionRef.Count;
 }
Example #2
0
 public void SetRange(int index, CSVectorPoint values)
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorPoint_SetRange(this.swigCPtr, index, CSVectorPoint.getCPtr(values));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public CSVectorPoint(CSVectorPoint other)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSVectorPoint__SWIG_1(CSVectorPoint.getCPtr(other)), true)
 {
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
        public static CSVectorPoint Repeat(Vec2 value, int count)
        {
            IntPtr        intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorPoint_Repeat(Vec2.getCPtr(value), count);
            CSVectorPoint result = (intPtr == IntPtr.Zero) ? null : new CSVectorPoint(intPtr, true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
Example #5
0
        public CSVectorPoint GetRange(int index, int count)
        {
            IntPtr        intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorPoint_GetRange(this.swigCPtr, index, count);
            CSVectorPoint result = (intPtr == IntPtr.Zero) ? null : new CSVectorPoint(intPtr, true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
Example #6
0
 public static HandleRef getCPtr(CSVectorPoint obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }