Lines Matching refs:gridSize
137 …QuadGrid (int gridSize, int screenWidth, int screenHeight, const Vec4& constCoords, const vecto…
177 QuadGrid::QuadGrid (int gridSize, int width, int height, const Vec4& constCoords, const vector<Mat4… in QuadGrid() argument
178 : m_gridSize (gridSize) in QuadGrid()
179 , m_numVertices ((gridSize + 1) * (gridSize + 1)) in QuadGrid()
180 , m_numTriangles (gridSize * gridSize * 2) in QuadGrid()
198 for (int y = 0; y < gridSize+1; y++) in QuadGrid()
199 for (int x = 0; x < gridSize+1; x++) in QuadGrid()
201 float sx = (float)x / (float)gridSize; in QuadGrid()
202 float sy = (float)y / (float)gridSize; in QuadGrid()
205 int vtxNdx = ((y * (gridSize+1)) + x); in QuadGrid()
219 for (int y = 0; y < gridSize; y++) in QuadGrid()
220 for (int x = 0; x < gridSize; x++) in QuadGrid()
222 int stride = gridSize + 1; in QuadGrid()
228 int baseNdx = ((y * gridSize) + x) * 6; in QuadGrid()
640 int gridSize = quadGrid.getGridSize(); in computeVertexReference() local
641 int stride = gridSize + 1; in computeVertexReference()
646 vector<Vec4> colors((gridSize+1)*(gridSize+1)); in computeVertexReference()
647 for (int y = 0; y < gridSize+1; y++) in computeVertexReference()
648 for (int x = 0; x < gridSize+1; x++) in computeVertexReference()
650 float sx = (float)x / (float)gridSize; in computeVertexReference()
651 float sy = (float)y / (float)gridSize; in computeVertexReference()
652 int vtxNdx = ((y * (gridSize+1)) + x); in computeVertexReference()
666 for (int y = 0; y < gridSize; y++) in computeVertexReference()
667 for (int x = 0; x < gridSize; x++) in computeVertexReference()
669 float x0 = (float)x / (float)gridSize; in computeVertexReference()
670 float x1 = (float)(x + 1) / (float)gridSize; in computeVertexReference()
671 float y0 = (float)y / (float)gridSize; in computeVertexReference()
672 float y1 = (float)(y + 1) / (float)gridSize; in computeVertexReference()