Home | History | Annotate | Download | only in test

Lines Matching defs:x1

80 add_line(int x1, int y1, int x2, int y2)
84 if ((x1 == x2) && (y1 == y2))
87 SDL_Log("adding line (%d, %d), (%d, %d)\n", x1, y1, x2, y2);
88 lines[num_lines].x = x1;
124 add_rect(int x1, int y1, int x2, int y2)
128 if ((x1 == x2) || (y1 == y2))
131 if (x1 > x2)
132 SWAP(int, x1, x2);
136 SDL_Log("adding rect (%d, %d), (%d, %d) [%dx%d]\n", x1, y1, x2, y2,
137 x2 - x1, y2 - y1);
139 rects[num_rects].x = x1;
141 rects[num_rects].w = x2 - x1;
163 int x1, y1, x2, y2;
167 x1 = lines[j].x;
172 if (SDL_IntersectRectAndLine(&r, &x1, &y1, &x2, &y2)) {
173 SDL_RenderDrawLine(renderer, x1, y1, x2, y2);