public static CCGrid3D Create(CCGridSize gridSize) { var pRet = new CCGrid3D(); if (pRet.InitWithSize(gridSize)) { return pRet; } return null; }
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; } }
public static CCGrid3D Create(CCGridSize gridSize, CCTexture2D pTexture, bool bFlipped) { var pRet = new CCGrid3D(); if (pRet.InitWithSize(gridSize, pTexture, bFlipped)) { return pRet; } return null; }
public static new CCGrid3D gridWithSize(ccGridSize gridSize) { CCGrid3D cCGrid3D = new CCGrid3D(); if (cCGrid3D.initWithSize(gridSize)) { return(cCGrid3D); } return(null); }
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); }
public new static CCGrid3D gridWithSize(ccGridSize gridSize) { CCGrid3D pRet = new CCGrid3D(); if (pRet.initWithSize(gridSize)) { return(pRet); } return(null); }
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); }
public static new CCGrid3D gridWithSize(ccGridSize gridSize) { CCGrid3D pRet = new CCGrid3D(); if (pRet.initWithSize(gridSize)) { return pRet; } return null; }
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; }
public void setVertex(int i, int j, ccVertex3F vertex) { CCGrid3D g = (CCGrid3D)m_pTarget.Grid; g.setVertex(i, j, vertex); }
/// <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); }
public ccVertex3F originalVertex(int i, int j) { CCGrid3D g = (CCGrid3D)m_pTarget.Grid; return(g.originalVertex(i, j)); }
/// <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)); }
/// <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)); }
/// <summary> /// returns the grid /// </summary> public override CCGridBase getGrid() { return(CCGrid3D.gridWithSize(m_sGridSize)); }