Home | History | Annotate | Download | only in glshared

Lines Matching defs:gridSize

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