GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_symbol.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2020 Cyril Hrubis <metan@ucw.cz>
4 */
5
6#ifndef GP_SYMBOL_H
7#define GP_SYMBOL_H
8
9#include "core/gp_types.h"
10
11enum gp_symbol_type {
12 GP_TRIANGLE_UP,
13 GP_TRIANGLE_DOWN,
14 GP_TRIANGLE_LEFT,
15 GP_TRIANGLE_RIGHT,
16};
17
18void gp_symbol(gp_pixmap *pixmap, gp_coord x_center, gp_coord y_center,
19 gp_size rx, gp_size ry, enum gp_symbol_type stype, gp_pixel pixel);
20
21void gp_symbol_raw(gp_pixmap *pixmap, gp_coord x_center, gp_coord y_center,
22 gp_size rx, gp_size ry, enum gp_symbol_type stype, gp_pixel pixel);
23
24#endif /* GP_SYMBOL_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