Lines Matching refs:x1
175 float x1 = 0.0f; in generateRow() local
185 x2 = x1 + floorf(segment * stretchX + 0.5f); in generateRow()
187 x2 = x1 + segment * rescaleX; in generateRow()
190 float uOffset = x1 == x2 ? 0.0f : 0.5 - (0.5 * segment / (x2 - x1)); in generateRow()
195 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount); in generateRow()
198 x1 = x2; in generateRow()
206 generateQuad(vertex, x1, y1, x2, y2, u1, v1, 1.0f, v2, quadCount); in generateRow()
210 void Patch::generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2, in generateQuad() argument
215 if (x1 < 0.0f) x1 = 0.0f; in generateQuad()
221 if ((mColors[oldQuadCount] == 0) || x1 >= x2 || y1 >= y2) { in generateQuad()
224 PATCH_LOGD(" left, top = %.2f, %.2f\t\tu1, v1 = %.8f, %.8f", x1, y1, u1, v1); in generateQuad()
232 Rect bounds(x1, y1, x2, y2); in generateQuad()
238 TextureVertex::set(vertex++, x1, y1, u1, v1); in generateQuad()
240 TextureVertex::set(vertex++, x1, y2, u1, v2); in generateQuad()
248 PATCH_LOGD(" left, top = %.2f, %.2f\t\tu1, v1 = %.8f, %.8f", x1, y1, u1, v1); in generateQuad()