コード例 #1
0
 public VertexVector(VertexVector other) : this(SharpMochaPINVOKE.new_VertexVector__SWIG_1(VertexVector.getCPtr(other)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public VertexVectorEnumerator(VertexVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #3
0
 public void SetRange(int index, VertexVector values)
 {
     SharpMochaPINVOKE.VertexVector_SetRange(swigCPtr, index, VertexVector.getCPtr(values));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        public static VertexVector Repeat(Vertex value, int count)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.VertexVector_Repeat(Vertex.getCPtr(value), count);
            VertexVector          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new VertexVector(cPtr, true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
        public VertexVector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.VertexVector_GetRange(swigCPtr, index, count);
            VertexVector          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new VertexVector(cPtr, true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
ファイル: Mesh.cs プロジェクト: Reticulatas/MochaEngineFinal
        public VertexVector GetVertices()
        {
            VertexVector ret = new VertexVector(SharpMochaPINVOKE.Mesh_GetVertices(swigCPtr), false);

            return(ret);
        }
コード例 #7
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VertexVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }