Lines Matching refs:y1
422 void gdx2d_draw_line(const gdx2d_pixmap* pixmap, int32_t x0, int32_t y0, int32_t x1, int32_t y1, uint32_t col) {
423 int32_t dy = y1 - y0;
464 while (y0 != y1) {
517 static inline void vline(const gdx2d_pixmap* pixmap, int32_t y1
528 if(y1 > y2) {
529 tmp = y1;
530 y1 = y2;
534 if(y1 >= (int32_t)pixmap->height) return;
537 if(y1 < 0) y1 = 0;
541 ptr += (x + y1 * pixmap->width) * bpp;
543 while(y1 != y2) {
548 y1++;
663 { if (_y2 > _y1) { edge.y1 = _y1; edge.y2 = _y2; edge.x1 = _x1; edge.x2 = _x2; } \
664 else { edge.y2 = _y1; edge.y1 = _y2; edge.x2 = _x1; edge.x1 = _x2; } }
666 void gdx2d_fill_triangle(const gdx2d_pixmap* pixmap, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3, uint32_t col) {
671 int32_t y1;
681 if ((x2 - x1) * (y3 - y1) == (x3 - x1) * (y2 - y1)) {
686 EDGE_ASSIGN(edges[0], x1, y1, x2, y2);
687 EDGE_ASSIGN(edges[1], x1, y1, x3, y3);
691 edge0_len = edges[0].y2 - edges[0].y1;
692 edge1_len = edges[1].y2 - edges[1].y1;
693 edge2_len = edges[2].y2 - edges[2].y1;
723 ((float) (edges[0].y2 - edges[0].y1));
725 ((float) (edges[1].y2 - edges[1].y1));
728 bound_y1 = max(edges[1].y1, 0);
745 if (edges[2].y2 - edges[2].y1 > 0) {
748 ((float) (edges[2].y2 - edges[2].y1));
750 bound_y1 = max(edges[2].y1, 0);