Home | History | Annotate | Download | only in test

Lines Matching refs:refRect

20     SDL_Rect *rect, SDL_Rect * refRect,
28 refRect->x, refRect->y, refRect->w, refRect->h,
30 SDLTest_AssertCheck(rect->x == refRect->x && rect->y == refRect->y && rect->w == refRect->w && rect->h == refRect->h,
33 refRect->x, refRect->y, refRect->w, refRect->h);
51 SDL_Rect refRect = { 0, 0, 32, 32 };
57 int xLeft = -SDLTest_RandomIntegerInRange(1, refRect.w);
58 int xRight = refRect.w + SDLTest_RandomIntegerInRange(1, refRect.w);
59 int yTop = -SDLTest_RandomIntegerInRange(1, refRect.h);
60 int yBottom = refRect.h + SDLTest_RandomIntegerInRange(1, refRect.h);
66 rect = refRect;
68 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 15, 31, 15);
74 rect = refRect;
76 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 15, 0, 15, 31);
78 x1 = -refRect.w;
79 y1 = -refRect.h;
80 x2 = 2*refRect.w;
81 y2 = 2*refRect.h;
82 rect = refRect;
84 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 0, 31, 31);
86 x1 = 2*refRect.w;
87 y1 = 2*refRect.h;
88 x2 = -refRect.w;
89 y2 = -refRect.h;
90 rect = refRect;
92 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 31, 31, 0, 0);
98 rect = refRect;
100 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 31, 31, 0);
106 rect = refRect;
108 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 31, 0, 0, 31);
122 SDL_Rect refRect = { 0, 0, 32, 32 };
128 int xmin = refRect.x;
129 int xmax = refRect.x + refRect.w - 1;
130 int ymin = refRect.y;
131 int ymax = refRect.y + refRect.h - 1;
141 rect = refRect;
143 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, x2Ref, y2Ref);
149 rect = refRect;
151 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, xmax, ymax);
157 rect = refRect;
159 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymin, x2Ref, y2Ref);
165 rect = refRect;
167 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymin, xmax, ymax);
173 rect = refRect;
175 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymax, xmax, ymin);
189 SDL_Rect refRect = { 0, 0, 32, 32 };
195 int xLeft = -SDLTest_RandomIntegerInRange(1, refRect.w);
196 int xRight = refRect.w + SDLTest_RandomIntegerInRange(1, refRect.w);
197 int yTop = -SDLTest_RandomIntegerInRange(1, refRect.h);
198 int yBottom = refRect.h + SDLTest_RandomIntegerInRange(1, refRect.h);
204 rect = refRect;
206 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, xLeft, 0, xLeft, 31);
212 rect = refRect;
214 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, xRight, 0, xRight, 31);
220 rect = refRect;
222 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, 0, yTop, 31, yTop);
228 rect = refRect;
230 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, 0, yBottom, 31, yBottom);
244 SDL_Rect refRect;
250 refRect.x = SDLTest_RandomIntegerInRange(1, 1024);
251 refRect.y = SDLTest_RandomIntegerInRange(1, 1024);
252 refRect.w = 0;
253 refRect.h = 0;
254 x1Ref = refRect.x;
255 y1Ref = refRect.y;
263 rect = refRect;
265 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, x2Ref, y2Ref);
375 SDL_Rect *rect, SDL_Rect *refRect)
382 SDLTest_AssertCheck(rect->x == refRect->x && rect->y == refRect->y && rect->w == refRect->w && rect->h == refRect->h,
385 refRect->x, refRect->y, refRect->w, refRect->h);
1462 SDL_Rect refRect;
1469 refRect.x=SDLTest_RandomIntegerInRange(-1024, 1024);
1470 refRect.y=SDLTest_RandomIntegerInRange(-1024, 1024);
1471 refRect.w=SDLTest_RandomIntegerInRange(256, 1024);
1472 refRect.h=SDLTest_RandomIntegerInRange(256, 1024);
1474 rect = refRect;
1476 _validateRectEmptyResults(result, expectedResult, &rect, &refRect);
1482 refRect.x=SDLTest_RandomIntegerInRange(-1024, 1024);
1483 refRect.y=SDLTest_RandomIntegerInRange(-1024, 1024);
1484 refRect.w=w;
1485 refRect.h=h;
1487 rect = refRect;
1489 _validateRectEmptyResults(result, expectedResult, &rect, &refRect);