public void TurnOffTile(CCGridSize pos) { var coords = new CCQuad3(); //memset(&coords, 0, sizeof(ccQuad3)); SetTile(pos, ref coords); }
/// <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; }
public void SetTile(CCGridSize pos, ref CCQuad3 coords) { m_pGrid.SetTile(pos, ref coords); }