GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_vline.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
13#ifndef GFX_GP_VLINE_H
14#define GFX_GP_VLINE_H
15
16#include <core/gp_types.h>
17#include <gfx/gp_vline.gen.h>
18
30 gp_coord y1, gp_pixel pixel);
31
32void gp_vline_xyy_raw(gp_pixmap *pixmap, gp_coord x, gp_coord y0,
33 gp_coord y1, gp_pixel pixel);
34
46 gp_pixel pixel);
47
48void gp_vline_xyh_raw(gp_pixmap *pixmap, gp_coord x, gp_coord y, gp_size h,
49 gp_pixel pixel);
50
57static inline void gp_vline(gp_pixmap *pixmap, gp_coord x,
58 gp_coord y0, gp_coord y1, gp_pixel pixel)
59{
60 gp_vline_xyy(pixmap, x, y0, y1, pixel);
61}
62
63static inline void gp_vline_raw(gp_pixmap *pixmap, gp_coord x,
64 gp_coord y0, gp_coord y1, gp_pixel pixel)
65{
66 gp_vline_xyy_raw(pixmap, x, y0, y1, pixel);
67}
68
69#endif /* GFX_GP_VLINE_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_vline_xyh(gp_pixmap *pixmap, gp_coord x, gp_coord y, gp_size h, gp_pixel pixel)
Vertical line drawing algorithm.
void gp_vline_xyy(gp_pixmap *pixmap, gp_coord x, gp_coord y0, gp_coord y1, gp_pixel pixel)
Vertical line drawing algorithm.
static void gp_vline(gp_pixmap *pixmap, gp_coord x, gp_coord y0, gp_coord y1, gp_pixel pixel)
Horizontal line drawing algorithm.
Definition gp_vline.h:57
A pixmap buffer.
Definition gp_pixmap.h:33