![]() |
tgrekov-fdf
HIVE fdf May 2024
|
Definition in file draw_line.c.
#include <MLX42.h>#include "../utils/utils.h"Go to the source code of this file.
Functions | |
| void | draw_line (mlx_image_t *img, int x1, int y1, int *p2) |
| Multi-directional implementation of the Bresenham incremental error line drawing algorithm. | |
| void draw_line | ( | mlx_image_t * | img, |
| int | x1, | ||
| int | y1, | ||
| int * | p2 | ||
| ) |
Multi-directional implementation of the Bresenham incremental error line drawing algorithm.
| img | Mlx image pointer |
| x1 | Starting x position |
| y1 | Starting y position |
| p2 | Ending [x, y] position |
Definition at line 32 of file draw_line.c.