Navit SVN

/work/compile/navit/src/navit/graphics/sdl/raster.h

00001 /* raster.h -- line/rect/circle/poly rasterization
00002 
00003    copyright (c) 2008 bryan rittmeyer <bryanr@bryanr.org>
00004 
00005    license: LGPLv2
00006 */
00007 
00008 #ifndef __RASTER_H
00009 #define __RASTER_H
00010 
00011 #include <stdint.h>
00012 #include <SDL/SDL.h>
00013 
00014 void raster_rect(SDL_Surface *s, int16_t x, int16_t y, int16_t w, int16_t h, uint32_t col);
00015 
00016 void raster_line(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col);
00017 void raster_circle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col);
00018 void raster_polygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col);
00019 
00020 void raster_aaline(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col);
00021 void raster_aacircle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col);
00022 void raster_aapolygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col);
00023 
00024 #endif /* __RASTER_H */
00025