navit  0.5.3-trunk
raster.h
Go to the documentation of this file.
1 /* raster.h -- line/rect/circle/poly rasterization
2 
3  copyright (c) 2008 bryan rittmeyer <bryanr@bryanr.org>
4 
5  license: LGPLv2
6 */
7 
8 #ifndef __RASTER_H
9 #define __RASTER_H
10 
11 #include <stdint.h>
12 #include "SDL.h"
13 #include "point.h"
14 
15 void raster_rect(SDL_Surface *s, int16_t x, int16_t y, int16_t w, int16_t h, uint32_t col);
16 
17 void raster_line(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col);
18 void raster_circle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col);
19 void raster_polygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col);
20 void raster_polygon_with_holes (SDL_Surface *s, struct point *p, int count, int hole_count, int* ccount,
21  struct point **holes, uint32_t col);
22 
23 void raster_aaline(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col);
24 void raster_aacircle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col);
25 void raster_aapolygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col);
26 void raster_aapolygon_with_holes (SDL_Surface *s, struct point *p, int count, int hole_count, int* ccount,
27  struct point **holes, uint32_t col);
28 
29 
30 #endif /* __RASTER_H */
unsigned char p[5]
Definition: mg.h:2
void raster_aacircle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col)
Definition: raster.c:1437
void raster_circle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col)
Definition: raster.c:1147
void raster_polygon_with_holes(SDL_Surface *s, struct point *p, int count, int hole_count, int *ccount, struct point **holes, uint32_t col)
render filled polygon with holes by raycasting along the y axis
Definition: raster.c:2036
void raster_line(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col)
Definition: raster.c:780
void raster_rect(SDL_Surface *s, int16_t x, int16_t y, int16_t w, int16_t h, uint32_t col)
Definition: raster.c:243
void raster_aaline(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col)
Definition: raster.c:1139
void raster_polygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col)
Definition: raster.c:1768
void raster_aapolygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col)
Definition: raster.c:1773
void raster_aapolygon_with_holes(SDL_Surface *s, struct point *p, int count, int hole_count, int *ccount, struct point **holes, uint32_t col)
render filled polygon with holes by raycasting along the y axis
Definition: raster.c:1987
Definition: point.h:23