GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_triangle.h
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-2011 Cyril Hrubis <metan@ucw.cz>
7 */
8
9#ifndef GP_TRIANGLE_H
10#define GP_TRIANGLE_H
11
12#include "core/gp_types.h"
13
14/* Triangle */
15
16void gp_triangle(gp_pixmap *pixmap, gp_coord x0, gp_coord y0,
17 gp_coord x1, gp_coord y1,
18 gp_coord x2, gp_coord y2, gp_pixel pixel);
19
20void gp_triangle_raw(gp_pixmap *pixmap, gp_coord x0, gp_coord y0,
21 gp_coord x1, gp_coord y1,
22 gp_coord x2, gp_coord y2, gp_pixel pixel);
23
24/* Filled Triangle */
25
26void gp_fill_triangle(gp_pixmap *pixmap, gp_coord x0, gp_coord y0,
27 gp_coord x1, gp_coord y1,
28 gp_coord x2, gp_coord y2, gp_pixel pixel);
29
30void gp_fill_triangle_raw(gp_pixmap *pixmap, gp_coord x0, gp_coord y0,
31 gp_coord x1, gp_coord y1,
32 gp_coord x2, gp_coord y2, gp_pixel pixel);
33
34#endif /* GP_TRIANGLE_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
A pixmap buffer.
Definition gp_pixmap.h:33