Beispiel #1
0
 public static CCGrid3D Create(CCGridSize gridSize)
 {
     var pRet = new CCGrid3D();
     if (pRet.InitWithSize(gridSize))
     {
         return pRet;
     }
     return null;
 }
Beispiel #2
0
 public override void reuse()
 {
     if (this.m_nReuseGrid > 0)
     {
         Array.Copy(this.m_pVertices, this.m_pOriginalVertices, (this.m_sGridSize.x + 1) * (this.m_sGridSize.y + 1));
         CCGrid3D mNReuseGrid = this;
         mNReuseGrid.m_nReuseGrid = mNReuseGrid.m_nReuseGrid - 1;
     }
 }
Beispiel #3
0
 public static CCGrid3D Create(CCGridSize gridSize, CCTexture2D pTexture, bool bFlipped)
 {
     var pRet = new CCGrid3D();
     if (pRet.InitWithSize(gridSize, pTexture, bFlipped))
     {
         return pRet;
     }
     return null;
 }
Beispiel #4
0
        public static new CCGrid3D gridWithSize(ccGridSize gridSize)
        {
            CCGrid3D cCGrid3D = new CCGrid3D();

            if (cCGrid3D.initWithSize(gridSize))
            {
                return(cCGrid3D);
            }
            return(null);
        }
Beispiel #5
0
        public static new CCGrid3D gridWithSize(ccGridSize gridSize, CCTexture2D pTexture, bool bFlipped)
        {
            CCGrid3D cCGrid3D = new CCGrid3D();

            if (cCGrid3D.initWithSize(gridSize, pTexture, bFlipped))
            {
                return(cCGrid3D);
            }
            return(null);
        }
Beispiel #6
0
        public new static CCGrid3D gridWithSize(ccGridSize gridSize)
        {
            CCGrid3D pRet = new CCGrid3D();

            if (pRet.initWithSize(gridSize))
            {
                return(pRet);
            }

            return(null);
        }
Beispiel #7
0
        public new static CCGrid3D gridWithSize(ccGridSize gridSize, Texture pTexture, bool bFlipped)
        {
            CCGrid3D pRet = new CCGrid3D();

            if (pRet.initWithSize(gridSize, pTexture, bFlipped))
            {
                return(pRet);
            }

            return(null);
        }
Beispiel #8
0
        public static new CCGrid3D gridWithSize(ccGridSize gridSize)
        {
            CCGrid3D pRet = new CCGrid3D();

            if (pRet.initWithSize(gridSize))
            {
                return pRet;
            }

            return null;
        }
Beispiel #9
0
        public static new CCGrid3D gridWithSize(ccGridSize gridSize, CCTexture2D pTexture, bool bFlipped)
        {
            CCGrid3D pRet = new CCGrid3D();

            if (pRet.initWithSize(gridSize, pTexture, bFlipped))
            {
                return pRet;
            }

            return null;
        }
Beispiel #10
0
        public void setVertex(int i, int j, ccVertex3F vertex)
        {
            CCGrid3D g = (CCGrid3D)m_pTarget.Grid;

            g.setVertex(i, j, vertex);
        }
Beispiel #11
0
        /// <summary>
        /// sets a new vertex to a certain position of the grid
        /// </summary>
        public void setVertex(ccGridSize pos, ccVertex3F vertex)
        {
            CCGrid3D g = (CCGrid3D)m_pTarget.Grid;

            g.setVertex(pos, vertex);
        }
Beispiel #12
0
        public ccVertex3F originalVertex(int i, int j)
        {
            CCGrid3D g = (CCGrid3D)m_pTarget.Grid;

            return(g.originalVertex(i, j));
        }
Beispiel #13
0
        /// <summary>
        ///  returns the non-transformed vertex than belongs to certain position in the grid
        /// </summary>
        public ccVertex3F originalVertex(ccGridSize pos)
        {
            CCGrid3D g = (CCGrid3D)m_pTarget.Grid;

            return(g.originalVertex(pos));
        }
Beispiel #14
0
        /// <summary>
        ///  returns the vertex than belongs to certain position in the grid
        /// </summary>
        public ccVertex3F vertex(ccGridSize pos)
        {
            CCGrid3D g = (CCGrid3D)(m_pTarget.Grid);

            return(g.vertex(pos));
        }
Beispiel #15
0
 /// <summary>
 /// returns the grid
 /// </summary>
 public override CCGridBase getGrid()
 {
     return(CCGrid3D.gridWithSize(m_sGridSize));
 }