GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_arc.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_ARC_H
10#define GP_ARC_H
11
12#include <core/gp_types.h>
13
14#include <math.h>
15
16void gp_arc_segment(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
17 gp_size a, gp_size b, int direction,
18 double start, double end,
19 gp_pixel pixel);
20
21void gp_arc_segment_raw(gp_pixmap *pixmap, gp_coord xcenter, gp_coord ycenter,
22 gp_size a, gp_size b, int direction,
23 double start, double end,
24 gp_pixel pixel);
25
26#endif /* GP_ARC_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