Home | History | Annotate | Download | only in test

Lines Matching defs:x1

21     int x1, int y1, int x2, int y2,
34 SDLTest_AssertCheck(x1 == x1Ref && y1 == y1Ref && x2 == x2Ref && y2 == y2Ref,
36 x1, y1, x2, y2,
53 int x1, y1;
62 x1 = xLeft;
67 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
68 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 15, 31, 15);
70 x1 = 15;
75 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
76 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 15, 0, 15, 31);
78 x1 = -refRect.w;
83 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
84 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 0, 31, 31);
86 x1 = 2*refRect.w;
91 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
92 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 31, 31, 0, 0);
94 x1 = -1;
99 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
100 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 31, 31, 0);
102 x1 = 32;
107 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
108 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 31, 0, 0, 31);
124 int x1, y1;
137 x1 = x1Ref;
142 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
143 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, x2Ref, y2Ref);
145 x1 = x1Ref;
150 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
151 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, xmax, ymax);
153 x1 = xmin;
158 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
159 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymin, x2Ref, y2Ref);
161 x1 = xmin;
166 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
167 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymin, xmax, ymax);
169 x1 = xmin;
174 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
175 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymax, xmax, ymin);
191 int x1, y1;
200 x1 = xLeft;
205 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
206 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, xLeft, 0, xLeft, 31);
208 x1 = xRight;
213 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
214 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, xRight, 0, xRight, 31);
216 x1 = 0;
221 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
222 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, 0, yTop, 31, yTop);
224 x1 = 0;
229 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
230 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, 0, yBottom, 31, yBottom);
246 int x1, y1, x1Ref, y1Ref;
259 x1 = x1Ref;
264 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
265 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, x2Ref, y2Ref);
280 int x1 = rect.w / 2;
282 int x2 = x1;
286 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
289 intersected = SDL_IntersectRectAndLine((SDL_Rect *)NULL, &x1, &y1, &x2, &y2);
293 intersected = SDL_IntersectRectAndLine(&rect, &x1, (int *)NULL, &x2, &y2);
295 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, (int *)NULL, &y2);
297 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, (int *)NULL);
557 * \brief Tests SDL_IntersectRect() with 1x1 pixel sized rectangles
827 * \brief Tests SDL_HasIntersection() with 1x1 pixel sized rectangles
1241 /* Union 1x1 outside */
1376 /* Union 1x1 with itself */
1386 /* Union 1x1 somewhere inside */
1608 { (SDLTest_TestCaseFp)rect_testIntersectRectPoint, "rect_testIntersectRectPoint", "Tests SDL_IntersectRect with 1x1 sized rectangles", TEST_ENABLED };
1627 { (SDLTest_TestCaseFp)rect_testHasIntersectionPoint, "rect_testHasIntersectionPoint", "Tests SDL_HasIntersection with 1x1 sized rectangles", TEST_ENABLED };