Пример #1
0
 public void TurnOffTile(CCGridSize pos)
 {
     var coords = new CCQuad3();
     //memset(&coords, 0, sizeof(ccQuad3));
     SetTile(pos, ref coords);
 }
Пример #2
0
        /// <summary>
        /// sets a new tile
        /// </summary>
        public void SetTile(CCGridSize pos, ref CCQuad3 coords)
        {
            int idx = (m_sGridSize.Y * pos.X + pos.Y) * 4;

            ccV3F_T2F[] vertArray = m_pVertices;

            vertArray[idx + 0].vertices = coords.BottomLeft;
            vertArray[idx + 1].vertices = coords.BottomRight;
            vertArray[idx + 2].vertices = coords.TopLeft;
            vertArray[idx + 3].vertices = coords.TopRight;

            m_bDirty = true;
        }
Пример #3
0
 public void SetTile(CCGridSize pos, ref CCQuad3 coords)
 {
     m_pGrid.SetTile(pos, ref coords);
 }