diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-11 07:58:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-11 07:58:34 +0200 |
commit | ca95c2bab96b4109e3340e79dbc9a584577fea91 (patch) | |
tree | 634d5de8d78710fc6125448ae0828528241376ff /include | |
parent | 50543054eb23e9b93b5be4a272d130f04bf8bc4d (diff) | |
parent | c957ace732458d48b5e7da4297c40c160e340993 (diff) | |
download | barebox-ca95c2bab96b4109e3340e79dbc9a584577fea91.tar.gz barebox-ca95c2bab96b4109e3340e79dbc9a584577fea91.tar.xz |
Merge branch 'for-next/video'
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/2d-primitives.h | 15 | ||||
-rw-r--r-- | include/gui/graphic_utils.h | 3 | ||||
-rw-r--r-- | include/int_sqrt.h | 22 |
3 files changed, 40 insertions, 0 deletions
diff --git a/include/gui/2d-primitives.h b/include/gui/2d-primitives.h new file mode 100644 index 0000000000..06216bb03c --- /dev/null +++ b/include/gui/2d-primitives.h @@ -0,0 +1,15 @@ +#ifndef __2D_PRIMITIVES__ +#define __2D_PRIMITIVES__ + +#include <fb.h> + +void gu_draw_line(struct screen *sc, + int x1, int y1, int x2, int y2, + u8 r, u8 g, u8 b, u8 a, + unsigned int dash); + +void gu_draw_circle(struct screen *sc, + int x0, int y0, int radius, + u8 r, u8 g, u8 b, u8 a); + +#endif diff --git a/include/gui/graphic_utils.h b/include/gui/graphic_utils.h index 231b3a9414..279fdf91d3 100644 --- a/include/gui/graphic_utils.h +++ b/include/gui/graphic_utils.h @@ -28,4 +28,7 @@ void gu_invert_area(struct fb_info *info, void *buf, int startx, int starty, int void gu_screen_blit_area(struct screen *sc, int startx, int starty, int width, int height); +void gu_fill_rectangle(struct screen *sc, + int x1, int y1, int x2, int y2, + u8 r, u8 g, u8 b, u8 a); #endif /* __GRAPHIC_UTILS_H__ */ diff --git a/include/int_sqrt.h b/include/int_sqrt.h new file mode 100644 index 0000000000..55fb4fbe66 --- /dev/null +++ b/include/int_sqrt.h @@ -0,0 +1,22 @@ +/* + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#ifndef __INT_SQRT__ +#define __INT_SQRT__ + +unsigned long int_sqrt(unsigned long x); + +#endif |