GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_ellipse.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_ELLIPSE_H
10#define GP_ELLIPSE_H
11
12#include "core/gp_types.h"
13
14/* Ellipse */
15
16void gp_ellipse(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
17 gp_size a, gp_size b, gp_pixel pixel);
18
19void gp_ellipse_raw(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
20 gp_size a, gp_size b, gp_pixel pixel);
21
22/* Filled Ellipse */
23
24void gp_fill_ellipse(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
25 gp_size a, gp_size b, gp_pixel pixel);
26
27void gp_fill_ellipse_raw(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
28 gp_size a, gp_size b, gp_pixel pixel);
29
30#endif /* GP_ELLIPSE_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
A pixmap buffer.
Definition gp_pixmap.h:33