diff options
author | Stefan Wildemann <metalstrolch@users.noreply.github.com> | 2019-09-05 22:49:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 22:49:17 +0200 |
commit | 6d6485748bffd3f83c60754e3dfb517733689a6c (patch) | |
tree | c346d6641a37ea11347c16c0eed769b690626f89 /navit/graphics/sdl/raster.h | |
parent | b643162c355231eed6fd9c76731b816391d808dc (diff) | |
parent | 3935ada407de4b84ef511b1206467cd23c711f29 (diff) | |
download | navit-6d6485748bffd3f83c60754e3dfb517733689a6c.tar.gz |
Add:graphcs/sdl: Polygon with holes support #861
Add:graphics/sdl: Polygon with holes support.
Diffstat (limited to 'navit/graphics/sdl/raster.h')
-rw-r--r-- | navit/graphics/sdl/raster.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/navit/graphics/sdl/raster.h b/navit/graphics/sdl/raster.h index 2e68ea05f..e295f23fb 100644 --- a/navit/graphics/sdl/raster.h +++ b/navit/graphics/sdl/raster.h @@ -10,15 +10,21 @@ #include <stdint.h> #include "SDL.h" +#include "point.h" void raster_rect(SDL_Surface *s, int16_t x, int16_t y, int16_t w, int16_t h, uint32_t col); void raster_line(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col); void raster_circle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col); void raster_polygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col); +void raster_polygon_with_holes (SDL_Surface *s, struct point *p, int count, int hole_count, int* ccount, + struct point **holes, uint32_t col); void raster_aaline(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col); void raster_aacircle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col); void raster_aapolygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col); +void raster_aapolygon_with_holes (SDL_Surface *s, struct point *p, int count, int hole_count, int* ccount, + struct point **holes, uint32_t col); + #endif /* __RASTER_H */ |