Lines Matching refs:gridSizeY
62 static inline int getNumVertices (int gridSizeX, int gridSizeY) in getNumVertices() argument
64 return (gridSizeX + 1) * (gridSizeY + 1); in getNumVertices()
67 static inline int getNumIndices (int gridSizeX, int gridSizeY) in getNumIndices() argument
69 return gridSizeX*gridSizeY*6; in getNumIndices()
77 static void generateVertices (std::vector<float>& dst, int gridSizeX, int gridSizeY, const AttribSp… in generateVertices() argument
81 DE_ASSERT((gridSizeX + 1)*(gridSizeY + 1) <= (1<<16)); // Must fit into 16-bit indices. in generateVertices()
82 DE_ASSERT(gridSizeX >= 1 && gridSizeY >= 1); in generateVertices()
83 dst.resize((gridSizeX + 1) * (gridSizeY + 1) * 4); in generateVertices()
85 for (int y = 0; y <= gridSizeY; y++) in generateVertices()
90 float yf = (float)y / (float)gridSizeY; in generateVertices()
98 static void generateIndices (std::vector<deUint16>& dst, int gridSizeX, int gridSizeY) in generateIndices() argument
101 int numIndices = gridSizeX * gridSizeY * numIndicesPerQuad; in generateIndices()
104 for (int y = 0; y < gridSizeY; y++) in generateIndices()