GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_polygon.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_POLYGON_H
14#define GFX_GP_POLYGON_H
15
16#include <core/gp_types.h>
17
31void gp_polygon(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off,
32 unsigned int vertex_count, const gp_coord *xy, gp_pixel pixel);
33
34void gp_polygon_raw(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off,
35 unsigned int vertex_count, const gp_coord *xy, gp_pixel pixel);
36
37void gp_polygon_th_raw(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off,
38 unsigned int vertex_count, const gp_coord *xy,
39 gp_size r, gp_pixel pixel);
40
55void gp_polygon_th(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off,
56 unsigned int vertex_count, const gp_coord *xy,
57 gp_size r, gp_pixel pixel);
58
70void gp_fill_polygon(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off,
71 unsigned int vertex_count, const gp_coord *xy, gp_pixel pixel);
72
73void gp_fill_polygon_raw(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off,
74 unsigned int vertex_count, const gp_coord *xy, gp_pixel pixel);
75
76#endif /* GFX_GP_POLYGON_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_fill_polygon(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off, unsigned int vertex_count, const gp_coord *xy, gp_pixel pixel)
Fills a polygon.
void gp_polygon_th(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off, unsigned int vertex_count, const gp_coord *xy, gp_size r, gp_pixel pixel)
Draws a thick polygon outline.
void gp_polygon(gp_pixmap *pixmap, gp_coord x_off, gp_coord y_off, unsigned int vertex_count, const gp_coord *xy, gp_pixel pixel)
Draws a polygon outline.
A pixmap buffer.
Definition gp_pixmap.h:33