GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_circle.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-2011 Cyril Hrubis <metan@ucw.cz>
7 */
12#ifndef GP_CIRCLE_H
13#define GP_CIRCLE_H
14
15#include <core/gp_types.h>
16
27void gp_circle(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
28 gp_size r, gp_pixel pixel);
29
30void gp_circle_raw(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
31 gp_size r, gp_pixel pixel);
32
33/* Filled Circle */
34
45void gp_fill_circle(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
46 gp_size r, gp_pixel pixel);
47
48void gp_fill_circle_raw(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
49 gp_size r, gp_pixel pixel);
50
51/* Ring */
52
53void gp_ring(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
54 gp_size r1, gp_size r2, gp_pixel pixel);
55
56void gp_ring_raw(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
57 gp_size r1, gp_size r2, gp_pixel pixel);
58
59/* Filled Ring */
60
61void gp_fill_ring(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
62 gp_size r1, gp_size r2, gp_pixel pixel);
63
64void gp_fill_ring_raw(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
65 gp_size r1, gp_size r2, gp_pixel pixel);
66
67#endif /* GP_CIRCLE_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_circle(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter, gp_size r, gp_pixel pixel)
Draws a circle.
void gp_fill_circle(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter, gp_size r, gp_pixel pixel)
Draws a filled circle.
A pixmap buffer.
Definition gp_pixmap.h:33