Functions | |
u32 | sbmp16_get_pixel (const TSurface *src, int x, int y) |
Get the pixel value of src at (x, y). | |
void | sbmp16_plot (const TSurface *dst, int x, int y, u32 clr) |
Plot a single pixel on a 16-bit buffer. | |
void | sbmp16_hline (const TSurface *dst, int x1, int y, int x2, u32 clr) |
Draw a horizontal line on an 16bit buffer. | |
void | sbmp16_vline (const TSurface *dst, int x, int y1, int y2, u32 clr) |
Draw a vertical line on an 16bit buffer. | |
void | sbmp16_line (const TSurface *dst, int x1, int y1, int x2, int y2, u32 clr) |
Draw a line on an 16bit buffer. | |
void | sbmp16_rect (const TSurface *dst, int left, int top, int right, int bottom, u32 clr) |
Draw a rectangle in 16bit mode. | |
void | sbmp16_frame (const TSurface *dst, int left, int top, int right, int bottom, u32 clr) |
Draw a rectangle in 16bit mode. | |
void | sbmp16_blit (const TSurface *dst, int dstX, int dstY, uint width, uint height, const TSurface *src, int srcX, int srcY) |
16bpp blitter. Copies a rectangle from one surface to another. | |
void | sbmp16_floodfill (const TSurface *dst, int x, int y, u32 clr) |
Floodfill an area of the same color with new color clr. | |
INLINE void | _sbmp16_plot (const TSurface *dst, int x, int y, u32 clr) |
Plot a single pixel on a 16-bit buffer; inline version. | |
INLINE u32 | _sbmp16_get_pixel (const TSurface *src, int x, int y) |
Get the pixel value of src at (x, y); inline version. |
void sbmp16_blit | ( | const TSurface * | dst, | |
int | dstX, | |||
int | dstY, | |||
uint | width, | |||
uint | height, | |||
const TSurface * | src, | |||
int | srcX, | |||
int | srcY | |||
) |
16bpp blitter. Copies a rectangle from one surface to another.
dst | Destination surface. | |
dstX | Left coord of rectangle on dst. | |
dstY | Top coord of rectangle on dst. | |
width | Width of rectangle to blit. | |
height | Height of rectangle to blit. | |
src | Source surface. | |
srcX | Left coord of rectangle on src. | |
srcY | Top coord of rectangle on src. |
void sbmp16_floodfill | ( | const TSurface * | dst, | |
int | x, | |||
int | y, | |||
u32 | clr | |||
) |
Floodfill an area of the same color with new color clr.
dst | Destination surface. | |
x | X-coordinate. | |
y | Y-coordinate; | |
clr | Color. |
void sbmp16_frame | ( | const TSurface * | dst, | |
int | left, | |||
int | top, | |||
int | right, | |||
int | bottom, | |||
u32 | clr | |||
) |
Draw a rectangle in 16bit mode.
dst | Destination surface. | |
left | Left side of rectangle; | |
top | Top side of rectangle. | |
right | Right side of rectangle. | |
bottom | Bottom side of rectangle. | |
clr | Color. |
PONDER: RB in- or exclusive?
u32 sbmp16_get_pixel | ( | const TSurface * | src, | |
int | x, | |||
int | y | |||
) |
Get the pixel value of src at (x, y).
void sbmp16_hline | ( | const TSurface * | dst, | |
int | x1, | |||
int | y, | |||
int | x2, | |||
u32 | clr | |||
) |
Draw a horizontal line on an 16bit buffer.
dst | Destination surface. | |
x1 | First X-coord. | |
y | Y-coord. | |
x2 | Second X-coord. | |
clr | Color. |
void sbmp16_line | ( | const TSurface * | dst, | |
int | x1, | |||
int | y1, | |||
int | x2, | |||
int | y2, | |||
u32 | clr | |||
) |
Draw a line on an 16bit buffer.
dst | Destination surface. | |
x1 | First X-coord. | |
y1 | First Y-coord. | |
x2 | Second X-coord. | |
y2 | Second Y-coord. | |
clr | Color. |
void sbmp16_plot | ( | const TSurface * | dst, | |
int | x, | |||
int | y, | |||
u32 | clr | |||
) |
Plot a single pixel on a 16-bit buffer.
dst | Destination surface. | |
x | X-coord. | |
y | Y-coord. | |
clr | Color. |
void sbmp16_rect | ( | const TSurface * | dst, | |
int | left, | |||
int | top, | |||
int | right, | |||
int | bottom, | |||
u32 | clr | |||
) |
Draw a rectangle in 16bit mode.
dst | Destination surface. | |
left | Left side of rectangle; | |
top | Top side of rectangle. | |
right | Right side of rectangle. | |
bottom | Bottom side of rectangle. | |
clr | Color. |
void sbmp16_vline | ( | const TSurface * | dst, | |
int | x, | |||
int | y1, | |||
int | y2, | |||
u32 | clr | |||
) |
Draw a vertical line on an 16bit buffer.
dst | Destination surface. | |
x | X-coord. | |
y1 | First Y-coord. | |
y2 | Second Y-coord. | |
clr | Color. |