GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
gfx
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
11
enum
gp_symbol_type {
12
GP_TRIANGLE_UP,
13
GP_TRIANGLE_DOWN,
14
GP_TRIANGLE_LEFT,
15
GP_TRIANGLE_RIGHT,
16
};
17
18
void
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
21
void
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 */
gp_types.h
A common types.
gp_pixel
uint32_t gp_pixel
Pixel integer value.
Definition
gp_types.h:33
gp_coord
int gp_coord
Integer type for coordinates i.e. x, y, ...
Definition
gp_types.h:19
gp_size
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition
gp_types.h:24
gp_pixmap
A pixmap buffer.
Definition
gp_pixmap.h:33
Generated by
1.9.8