ClangFormat: apply to source, most of intern
[blender.git] / source / blender / blenlib / BLI_bitmap_draw_2d.h
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16
17 #ifndef __BLI_BITMAP_DRAW_2D_H__
18 #define __BLI_BITMAP_DRAW_2D_H__
19
20 /** \file
21  * \ingroup bli
22  */
23
24 void BLI_bitmap_draw_2d_line_v2v2i(const int p1[2],
25                                    const int p2[2],
26                                    bool (*callback)(int, int, void *),
27                                    void *user_data);
28
29 void BLI_bitmap_draw_2d_tri_v2i(const int p1[2],
30                                 const int p2[2],
31                                 const int p3[2],
32                                 void (*callback)(int x, int x_end, int y, void *),
33                                 void *user_data);
34
35 void BLI_bitmap_draw_2d_poly_v2i_n(const int xmin,
36                                    const int ymin,
37                                    const int xmax,
38                                    const int ymax,
39                                    const int verts[][2],
40                                    const int verts_len,
41                                    void (*callback)(int x, int x_end, int y, void *),
42                                    void *user_data);
43
44 #endif /* __BLI_BITMAP_DRAW_2D_H__ */