GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Toggle main menu visibility
Main Page
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Files
File List
Globals
All
g
j
Functions
g
Variables
Typedefs
g
Enumerations
g
j
Enumerator
g
Macros
g
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
include
gfx
gp_tetragon.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_TETRAGON_H
10
#define GP_TETRAGON_H
11
12
#include "
core/gp_types.h
"
13
14
/* Tetragon */
15
16
void
gp_tetragon(
gp_pixmap
*pixmap,
gp_coord
x0,
gp_coord
y0,
17
gp_coord
x1,
gp_coord
y1,
gp_coord
x2,
gp_coord
y2,
18
gp_coord
x3,
gp_coord
y3,
gp_pixel
pixel);
19
20
void
gp_tetragon_raw(
gp_pixmap
*pixmap,
gp_coord
x0,
gp_coord
y0,
21
gp_coord
x1,
gp_coord
y1,
gp_coord
x2,
gp_coord
y2,
22
gp_coord
x3,
gp_coord
y3,
gp_pixel
pixel);
23
24
/* Filled Tetragon */
25
26
void
gp_fill_tetragon(
gp_pixmap
*pixmap,
gp_coord
x0,
gp_coord
y0,
27
gp_coord
x1,
gp_coord
y1,
gp_coord
x2,
gp_coord
y2,
28
gp_coord
x3,
gp_coord
y3,
gp_pixel
pixel);
29
30
void
gp_fill_tetragon_raw(
gp_pixmap
*pixmap,
gp_coord
x0,
gp_coord
y0,
31
gp_coord
x1,
gp_coord
y1,
gp_coord
x2,
gp_coord
y2,
32
gp_coord
x3,
gp_coord
y3,
gp_pixel
pixel);
33
34
#endif
/* GP_TETRAGON_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_pixmap
A pixmap buffer.
Definition
gp_pixmap.h:33
Generated by
1.9.8