Lines Matching refs:gridWidth
1760 const int gridWidth = 4;
1762 const int numVertices = (gridWidth+1)*(gridHeight+1);
1763 const int numIndices = gridWidth*gridHeight * (m_primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3*2 : m_primitiveType == TESSPRIMITIVETYPE_QUADS ? 4 : -1);
1776 for (int j = 0; j < gridWidth+1; j++)
1778 gridPosComps.push_back(-1.0f + 2.0f * ((float)j + 0.5f) / (float)(gridWidth+1));
1780 gridTessParams.push_back((float)(i*(gridWidth+1) + j) / (float)(numVertices-1));
1791 for (int j = 0; j < gridWidth; j++)
1795 (deUint16)((i+0)*(gridWidth+1) + j+0),
1796 (deUint16)((i+0)*(gridWidth+1) + j+1),
1797 (deUint16)((i+1)*(gridWidth+1) + j+0),
1798 (deUint16)((i+1)*(gridWidth+1) + j+1)
1815 for (int j = 0; j < gridWidth; j++)
1821 gridIndices.push_back((deUint16)((i+(i+m)%2)*(gridWidth+1) + j+(j+n)%2));