Lines Matching refs:y2
155 float y2 = 0.0f;
163 y2 = y1 + floorf(segment * stretchY + 0.5f);
165 y2 = y1 + segment * rescaleY;
168 float vOffset = y1 == y2 ? 0.0f : 0.5 - (0.5 * segment / (y2 - y1));
175 y2 += i * EXPLODE_GAP;
177 generateRow(vertex, y1, y2, v1, v2, stretchX, rescaleX, right - left,
180 y2 -= i * EXPLODE_GAP;
184 y1 = y2;
191 y2 = bottom - top;
194 y2 += mYCount * EXPLODE_GAP;
196 generateRow(vertex, y1, y2, v1, 1.0f, stretchX, rescaleX, right - left,
217 void Patch::generateRow(TextureVertex*& vertex, float y1, float y2, float v1, float v2,
245 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount);
263 generateQuad(vertex, x1, y1, x2, y2, u1, v1, 1.0f, v2, quadCount);
267 void Patch::generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2,
275 if (y2 < 0.0f) y2 = 0.0f;
278 if (((mColorKey >> oldQuadCount) & 0x1) || x1 >= x2 || y1 >= y2) {
282 PATCH_LOGD(" right, bottom = %.2f, %.2f\t\tu2, v2 = %.4f, %.4f", x2, y2, u2, v2);
289 Rect bounds(x1, y1, x2, y2);
296 TextureVertex::set(vertex++, x1, y2, u1, v2);
299 TextureVertex::set(vertex++, x1, y2, u1, v2);
301 TextureVertex::set(vertex++, x2, y2, u2, v2);
309 PATCH_LOGD(" right, bottom = %.2f, %.2f\t\tu2, v2 = %.4f, %.4f", x2, y2, u2, v2);