GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_line.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2011 Jiri "BlueBear" Dluhos
4 * <jiri.bluebear.dluhos@gmail.com>
5 *
6 * Copyright (C) 2009-2024 Cyril Hrubis <metan@ucw.cz>
7 */
8
14#ifndef GFX_GP_LINE_H
15#define GFX_GP_LINE_H
16
17#include <core/gp_types.h>
18
38void gp_line(gp_pixmap *pixmap, gp_coord x0, gp_coord y0,
39 gp_coord x1, gp_coord y1, gp_pixel pixel);
65 gp_coord x1, gp_coord y1, gp_size r, gp_pixel pixel);
66
67void gp_line_raw(gp_pixmap *pixmap, gp_coord x0, gp_coord y0,
68 gp_coord x1, gp_coord y1, gp_pixel pixel);
69
70void gp_line_th_raw(gp_pixmap *pixmap, gp_coord x0, gp_coord y0,
71 gp_coord x1, gp_coord y1, gp_size r, gp_pixel pixel);
72
73#endif /* GFX_GP_LINE_H */
A common types.
uint32_t gp_pixel
Pixel integer value.
Definition gp_types.h:33
int gp_coord
Integer type for coordinates i.e. x, y, ...
Definition gp_types.h:19
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24
void gp_line(gp_pixmap *pixmap, gp_coord x0, gp_coord y0, gp_coord x1, gp_coord y1, gp_pixel pixel)
Classical Bresenham line drawing algorithm.
void gp_line_th(gp_pixmap *pixmap, gp_coord x0, gp_coord y0, gp_coord x1, gp_coord y1, gp_size r, gp_pixel pixel)
Murphy thick line drawing algorithm.
A pixmap buffer.
Definition gp_pixmap.h:33