SDL
2.0
|
Go to the source code of this file.
#define AALINE | ( | x1, | |
y1, | |||
x2, | |||
y2, | |||
opaque_op, | |||
blend_op, | |||
draw_end | |||
) | BLINE(x1, y1, x2, y2, opaque_op, draw_end) |
Definition at line 547 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGB555(), SDL_BlendLine_RGB565(), SDL_BlendLine_RGB888(), SDL_BlendLine_RGBA4(), SDL_DrawLine2(), and SDL_DrawLine4().
#define ABS | ( | _x | ) | ((_x) < 0 ? -(_x) : (_x)) |
Definition at line 293 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGB555(), SDL_BlendLine_RGB565(), SDL_BlendLine_RGB888(), SDL_BlendLine_RGBA4(), SDL_DrawLine1(), SDL_DrawLine2(), and SDL_DrawLine4().
Definition at line 375 of file SDL_draw.h.
Referenced by SDL_DrawLine1().
#define DLINE | ( | type, | |
op, | |||
draw_end | |||
) |
Definition at line 340 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGB555(), SDL_BlendLine_RGB565(), SDL_BlendLine_RGB888(), SDL_BlendLine_RGBA4(), SDL_DrawLine1(), SDL_DrawLine2(), and SDL_DrawLine4().
Definition at line 31 of file SDL_draw.h.
#define DRAW_FASTSETPIXEL1 DRAW_FASTSETPIXEL(Uint8) |
Definition at line 34 of file SDL_draw.h.
Referenced by SDL_DrawLine1().
#define DRAW_FASTSETPIXEL2 DRAW_FASTSETPIXEL(Uint16) |
Definition at line 35 of file SDL_draw.h.
Referenced by SDL_DrawLine2().
#define DRAW_FASTSETPIXEL4 DRAW_FASTSETPIXEL(Uint32) |
Definition at line 36 of file SDL_draw.h.
Referenced by SDL_DrawLine4().
Definition at line 38 of file SDL_draw.h.
Definition at line 42 of file SDL_draw.h.
Referenced by SDL_DrawLine1(), SDL_DrawPoint(), and SDL_DrawPoints().
Definition at line 43 of file SDL_draw.h.
Referenced by SDL_DrawLine2(), SDL_DrawPoint(), and SDL_DrawPoints().
Definition at line 44 of file SDL_draw.h.
Referenced by SDL_DrawLine4(), SDL_DrawPoint(), and SDL_DrawPoints().
#define DRAW_MUL | ( | _a, | |
_b | |||
) | (((unsigned)(_a)*(_b))/255) |
Definition at line 29 of file SDL_draw.h.
Referenced by SDL_BlendFillRect(), SDL_BlendFillRects(), SDL_BlendLine_ARGB8888(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGB555(), SDL_BlendLine_RGB565(), SDL_BlendLine_RGB888(), SDL_BlendLine_RGBA4(), SDL_BlendPoint(), and SDL_BlendPoints().
#define DRAW_SETPIXEL | ( | setpixel | ) |
Definition at line 46 of file SDL_draw.h.
#define DRAW_SETPIXEL_ADD | ( | getpixel, | |
setpixel | |||
) |
Definition at line 63 of file SDL_draw.h.
#define DRAW_SETPIXEL_ADD_ARGB8888 |
Definition at line 194 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_ARGB8888(), and SDL_BlendLine_ARGB8888().
#define DRAW_SETPIXEL_ADD_RGB |
Definition at line 225 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB(), SDL_BlendLine_RGB2(), and SDL_BlendLine_RGB4().
#define DRAW_SETPIXEL_ADD_RGB555 |
Definition at line 101 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB555(), and SDL_BlendLine_RGB555().
#define DRAW_SETPIXEL_ADD_RGB565 |
Definition at line 132 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB565(), and SDL_BlendLine_RGB565().
#define DRAW_SETPIXEL_ADD_RGB888 |
Definition at line 163 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB888(), and SDL_BlendLine_RGB888().
#define DRAW_SETPIXEL_ADD_RGBA |
Definition at line 269 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGBA(), and SDL_BlendLine_RGBA4().
#define DRAW_SETPIXEL_ARGB8888 DRAW_SETPIXEL(ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa)) |
Definition at line 187 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_ARGB8888(), and SDL_BlendLine_ARGB8888().
#define DRAW_SETPIXEL_BLEND | ( | getpixel, | |
setpixel | |||
) |
Definition at line 52 of file SDL_draw.h.
#define DRAW_SETPIXEL_BLEND_ARGB8888 |
Definition at line 190 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_ARGB8888(), and SDL_BlendLine_ARGB8888().
#define DRAW_SETPIXEL_BLEND_RGB |
Definition at line 221 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB(), SDL_BlendLine_RGB2(), and SDL_BlendLine_RGB4().
#define DRAW_SETPIXEL_BLEND_RGB555 |
Definition at line 97 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB555(), and SDL_BlendLine_RGB555().
#define DRAW_SETPIXEL_BLEND_RGB565 |
Definition at line 128 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB565(), and SDL_BlendLine_RGB565().
#define DRAW_SETPIXEL_BLEND_RGB888 |
Definition at line 159 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB888(), and SDL_BlendLine_RGB888().
#define DRAW_SETPIXEL_BLEND_RGBA |
Definition at line 265 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGBA(), and SDL_BlendLine_RGBA4().
#define DRAW_SETPIXEL_MOD | ( | getpixel, | |
setpixel | |||
) |
Definition at line 73 of file SDL_draw.h.
#define DRAW_SETPIXEL_MOD_ARGB8888 |
Definition at line 198 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_ARGB8888(), and SDL_BlendLine_ARGB8888().
#define DRAW_SETPIXEL_MOD_RGB |
Definition at line 229 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB(), SDL_BlendLine_RGB2(), and SDL_BlendLine_RGB4().
#define DRAW_SETPIXEL_MOD_RGB555 |
Definition at line 105 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB555(), and SDL_BlendLine_RGB555().
#define DRAW_SETPIXEL_MOD_RGB565 |
Definition at line 136 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB565(), and SDL_BlendLine_RGB565().
#define DRAW_SETPIXEL_MOD_RGB888 |
Definition at line 167 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB888(), and SDL_BlendLine_RGB888().
#define DRAW_SETPIXEL_MOD_RGBA |
Definition at line 273 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGBA(), and SDL_BlendLine_RGBA4().
#define DRAW_SETPIXEL_RGB DRAW_SETPIXEL(PIXEL_FROM_RGB(*pixel, fmt, sr, sg, sb)) |
Definition at line 218 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB(), SDL_BlendLine_RGB2(), and SDL_BlendLine_RGB4().
#define DRAW_SETPIXEL_RGB555 DRAW_SETPIXEL(RGB555_FROM_RGB(*pixel, sr, sg, sb)) |
Definition at line 94 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB555(), and SDL_BlendLine_RGB555().
#define DRAW_SETPIXEL_RGB565 DRAW_SETPIXEL(RGB565_FROM_RGB(*pixel, sr, sg, sb)) |
Definition at line 125 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB565(), and SDL_BlendLine_RGB565().
#define DRAW_SETPIXEL_RGB888 DRAW_SETPIXEL(RGB888_FROM_RGB(*pixel, sr, sg, sb)) |
Definition at line 156 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGB888(), and SDL_BlendLine_RGB888().
#define DRAW_SETPIXEL_RGBA DRAW_SETPIXEL(PIXEL_FROM_RGBA(*pixel, fmt, sr, sg, sb, sa)) |
Definition at line 262 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_RGBA(), and SDL_BlendLine_RGBA4().
Definition at line 83 of file SDL_draw.h.
#define DRAW_SETPIXELXY2_ADD_RGB | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB) |
Definition at line 245 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB2(), and SDL_BlendPoint_RGB().
#define DRAW_SETPIXELXY2_BLEND_RGB | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB) |
Definition at line 239 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB2(), SDL_BlendPoint_RGB(), and SDL_DrawLine2().
#define DRAW_SETPIXELXY2_MOD_RGB | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB) |
Definition at line 251 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB2(), and SDL_BlendPoint_RGB().
#define DRAW_SETPIXELXY2_RGB | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB) |
Definition at line 233 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB2(), and SDL_BlendPoint_RGB().
#define DRAW_SETPIXELXY4_ADD_RGB | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGB) |
Definition at line 248 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB4(), and SDL_BlendPoint_RGB().
#define DRAW_SETPIXELXY4_ADD_RGBA | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGBA) |
Definition at line 283 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGBA4(), and SDL_BlendPoint_RGBA().
#define DRAW_SETPIXELXY4_BLEND_RGB | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGB) |
Definition at line 242 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB4(), SDL_BlendPoint_RGB(), and SDL_DrawLine4().
#define DRAW_SETPIXELXY4_BLEND_RGBA | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGBA) |
Definition at line 280 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGBA4(), and SDL_BlendPoint_RGBA().
#define DRAW_SETPIXELXY4_MOD_RGB | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGB) |
Definition at line 254 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB4(), and SDL_BlendPoint_RGB().
#define DRAW_SETPIXELXY4_MOD_RGBA | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGBA) |
Definition at line 286 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGBA4(), and SDL_BlendPoint_RGBA().
#define DRAW_SETPIXELXY4_RGB | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGB) |
Definition at line 236 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB4(), and SDL_BlendPoint_RGB().
#define DRAW_SETPIXELXY4_RGBA | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGBA) |
Definition at line 277 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGBA4(), and SDL_BlendPoint_RGBA().
#define DRAW_SETPIXELXY_ADD_ARGB8888 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_ARGB8888) |
Definition at line 208 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), and SDL_BlendPoint_ARGB8888().
#define DRAW_SETPIXELXY_ADD_RGB555 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB555) |
Definition at line 115 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB555(), and SDL_BlendPoint_RGB555().
#define DRAW_SETPIXELXY_ADD_RGB565 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB565) |
Definition at line 146 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB565(), and SDL_BlendPoint_RGB565().
#define DRAW_SETPIXELXY_ADD_RGB888 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGB888) |
Definition at line 177 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB888(), and SDL_BlendPoint_RGB888().
#define DRAW_SETPIXELXY_ARGB8888 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ARGB8888) |
Definition at line 202 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), and SDL_BlendPoint_ARGB8888().
#define DRAW_SETPIXELXY_BLEND_ARGB8888 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_ARGB8888) |
Definition at line 205 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendPoint_ARGB8888(), and SDL_DrawLine4().
#define DRAW_SETPIXELXY_BLEND_RGB555 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB555) |
Definition at line 112 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB555(), SDL_BlendPoint_RGB555(), and SDL_DrawLine2().
#define DRAW_SETPIXELXY_BLEND_RGB565 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB565) |
Definition at line 143 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB565(), SDL_BlendPoint_RGB565(), and SDL_DrawLine2().
#define DRAW_SETPIXELXY_BLEND_RGB888 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGB888) |
Definition at line 174 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB888(), SDL_BlendPoint_RGB888(), and SDL_DrawLine4().
#define DRAW_SETPIXELXY_MOD_ARGB8888 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_ARGB8888) |
Definition at line 211 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), and SDL_BlendPoint_ARGB8888().
#define DRAW_SETPIXELXY_MOD_RGB555 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB555) |
Definition at line 118 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB555(), and SDL_BlendPoint_RGB555().
#define DRAW_SETPIXELXY_MOD_RGB565 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB565) |
Definition at line 149 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB565(), and SDL_BlendPoint_RGB565().
#define DRAW_SETPIXELXY_MOD_RGB888 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGB888) |
Definition at line 180 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB888(), and SDL_BlendPoint_RGB888().
#define DRAW_SETPIXELXY_RGB555 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB555) |
Definition at line 109 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB555(), and SDL_BlendPoint_RGB555().
#define DRAW_SETPIXELXY_RGB565 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB565) |
Definition at line 140 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB565(), and SDL_BlendPoint_RGB565().
#define DRAW_SETPIXELXY_RGB888 | ( | x, | |
y | |||
) | DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGB888) |
Definition at line 171 of file SDL_draw.h.
Referenced by SDL_BlendLine_RGB888(), and SDL_BlendPoint_RGB888().
#define FILLRECT | ( | type, | |
op | |||
) |
Definition at line 555 of file SDL_draw.h.
Referenced by SDL_BlendFillRect_ARGB8888(), SDL_BlendFillRect_RGB(), SDL_BlendFillRect_RGB555(), SDL_BlendFillRect_RGB565(), SDL_BlendFillRect_RGB888(), and SDL_BlendFillRect_RGBA().
#define HLINE | ( | type, | |
op, | |||
draw_end | |||
) |
Definition at line 296 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGB555(), SDL_BlendLine_RGB565(), SDL_BlendLine_RGB888(), SDL_BlendLine_RGBA4(), SDL_DrawLine2(), and SDL_DrawLine4().
#define VLINE | ( | type, | |
op, | |||
draw_end | |||
) |
Definition at line 318 of file SDL_draw.h.
Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGB555(), SDL_BlendLine_RGB565(), SDL_BlendLine_RGB888(), SDL_BlendLine_RGBA4(), SDL_DrawLine1(), SDL_DrawLine2(), and SDL_DrawLine4().