Lines Matching refs:x2
176 float x2 = 0.0f;
185 x2 = x1 + floorf(segment * stretchX + 0.5f);
187 x2 = x1 + segment * rescaleX;
190 float uOffset = x1 == x2 ? 0.0f : 0.5 - (0.5 * segment / (x2 - x1));
195 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount);
198 x1 = x2;
205 x2 = width;
206 generateQuad(vertex, x1, y1, x2, y2, u1, v1, 1.0f, v2, quadCount);
210 void Patch::generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2,
216 if (x2 < 0.0f) x2 = 0.0f;
221 if ((mColors[oldQuadCount] == 0) || x1 >= x2 || y1 >= y2) {
225 PATCH_LOGD(" right, bottom = %.2f, %.2f\t\tu2, v2 = %.8f, %.8f", x2, y2, u2, v2);
232 Rect bounds(x1, y1, x2, y2);
239 TextureVertex::set(vertex++, x2, y1, u2, v1);
241 TextureVertex::set(vertex++, x2, y2, u2, v2);
249 PATCH_LOGD(" right, bottom = %.2f, %.2f\t\tu2, v2 = %.8f, %.8f", x2, y2, u2, v2);