23 #if !SDL_RENDER_DISABLED
33 unsigned inva = 0xff -
a;
56 unsigned inva = 0xff -
a;
79 unsigned inva = 0xff -
a;
102 unsigned inva = 0xff -
a;
126 unsigned inva = 0xff -
a;
171 unsigned inva = 0xff -
a;
207 return SDL_SetError(
"SDL_BlendFillRect(): Unsupported surface format");
278 return SDL_SetError(
"SDL_BlendFillRects(): Unsupported surface format");
324 for (i = 0; i <
count; ++
i) {
329 status =
func(dst, &rect, blendMode, r, g, b, a);
#define DRAW_SETPIXEL_BLEND_ARGB8888
static int SDL_BlendFillRect_RGB565(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXEL_MOD_ARGB8888
SDL_BlendMode
The blend mode used in SDL_RenderCopy() and drawing operations.
#define DRAW_SETPIXEL_MOD_RGB565
#define DRAW_SETPIXEL_RGBA
static int SDL_BlendFillRect_RGB(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXEL_ADD_RGB565
static int SDL_BlendFillRect_ARGB8888(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXEL_MOD_RGB
A collection of pixels used in software blitting.
#define DRAW_SETPIXEL_ADD_RGB888
GLboolean GLboolean GLboolean GLboolean a
#define FILLRECT(type, op)
#define DRAW_SETPIXEL_BLEND_RGB888
#define DRAW_SETPIXEL_RGB
uint32_t Uint32
An unsigned 32-bit integer type.
#define DRAW_SETPIXEL_BLEND_RGB555
int SDL_BlendFillRects(SDL_Surface *dst, const SDL_Rect *rects, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
static int SDL_BlendFillRect_RGB888(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXEL_ADD_RGB555
DECLSPEC SDL_bool SDLCALL SDL_IntersectRect(const SDL_Rect *A, const SDL_Rect *B, SDL_Rect *result)
Calculate the intersection of two rectangles.
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
#define DRAW_SETPIXEL_ARGB8888
#define DRAW_SETPIXEL_RGB888
#define DRAW_SETPIXEL_ADD_RGB
#define DRAW_SETPIXEL_BLEND_RGB565
int SDL_BlendFillRect(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXEL_RGB565
static int SDL_BlendFillRect_RGBA(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
uint8_t Uint8
An unsigned 8-bit integer type.
#define DRAW_SETPIXEL_BLEND_RGB
static int SDL_BlendFillRect_RGB555(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
GLdouble GLdouble GLdouble r
#define DRAW_SETPIXEL_MOD_RGB555
#define DRAW_SETPIXEL_RGB555
GLdouble GLdouble GLdouble b
#define DRAW_SETPIXEL_ADD_RGBA
uint16_t Uint16
An unsigned 16-bit integer type.
#define DRAW_SETPIXEL_ADD_ARGB8888
#define SDL_Unsupported()
#define DRAW_SETPIXEL_MOD_RGBA
A rectangle, with the origin at the upper left.
#define DRAW_SETPIXEL_MOD_RGB888
#define DRAW_SETPIXEL_BLEND_RGBA