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/SDL.h>
|
13 |
|
14 |
void raster_rect(SDL_Surface *s, int16_t x, int16_t y, int16_t w, int16_t h, uint32_t col);
|
15 |
|
16 |
void raster_line(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col);
|
17 |
void raster_circle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col);
|
18 |
void raster_polygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col);
|
19 |
|
20 |
void raster_aaline(SDL_Surface *s, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint32_t col);
|
21 |
void raster_aacircle(SDL_Surface *s, int16_t x, int16_t y, int16_t r, uint32_t col);
|
22 |
void raster_aapolygon(SDL_Surface *s, int16_t n, int16_t *vx, int16_t *vy, uint32_t col);
|
23 |
|
24 |
#endif /* __RASTER_H */
|
25 |
|