Go to the source code of this file.
|
static int | SDL_BlendFillRect_RGB555 (SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
static int | SDL_BlendFillRect_RGB565 (SDL_Surface *dst, const SDL_Rect *rect, 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) |
|
static int | SDL_BlendFillRect_ARGB8888 (SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
static int | SDL_BlendFillRect_RGB (SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
static int | SDL_BlendFillRect_RGBA (SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
int | SDL_BlendFillRect (SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
int | SDL_BlendFillRects (SDL_Surface *dst, const SDL_Rect *rects, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
◆ SDL_BlendFillRect()
Definition at line 217 of file SDL_blendfillrect.c.
227 if (
dst->format->BitsPerPixel < 8) {
228 return SDL_SetError(
"SDL_BlendFillRect(): Unsupported surface format");
248 switch (
dst->format->BitsPerPixel) {
250 switch (
dst->format->Rmask) {
256 switch (
dst->format->Rmask) {
262 switch (
dst->format->Rmask) {
264 if (!
dst->format->Amask) {
276 if (!
dst->format->Amask) {
References blendMode, DRAW_MUL, rect, SDL_BlendFillRect_ARGB8888(), SDL_BlendFillRect_RGB(), SDL_BlendFillRect_RGB555(), SDL_BlendFillRect_RGB565(), SDL_BlendFillRect_RGB888(), SDL_BlendFillRect_RGBA(), SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_IntersectRect, and SDL_SetError.
◆ SDL_BlendFillRect_ARGB8888()
Definition at line 108 of file SDL_blendfillrect.c.
111 unsigned inva = 0xff -
a;
References blendMode, DRAW_SETPIXEL_ADD_ARGB8888, DRAW_SETPIXEL_ARGB8888, DRAW_SETPIXEL_BLEND_ARGB8888, DRAW_SETPIXEL_MOD_ARGB8888, DRAW_SETPIXEL_MUL_ARGB8888, FILLRECT, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, and SDL_BLENDMODE_MUL.
Referenced by SDL_BlendFillRect(), and SDL_BlendFillRects().
◆ SDL_BlendFillRect_RGB()
Definition at line 134 of file SDL_blendfillrect.c.
138 unsigned inva = 0xff -
a;
References blendMode, SDL_PixelFormat::BytesPerPixel, DRAW_SETPIXEL_ADD_RGB, DRAW_SETPIXEL_BLEND_RGB, DRAW_SETPIXEL_MOD_RGB, DRAW_SETPIXEL_MUL_RGB, DRAW_SETPIXEL_RGB, FILLRECT, SDL_PixelFormat::format, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, SDL_BLENDMODE_MUL, and SDL_Unsupported.
Referenced by SDL_BlendFillRect(), and SDL_BlendFillRects().
◆ SDL_BlendFillRect_RGB555()
Definition at line 30 of file SDL_blendfillrect.c.
33 unsigned inva = 0xff -
a;
References blendMode, DRAW_SETPIXEL_ADD_RGB555, DRAW_SETPIXEL_BLEND_RGB555, DRAW_SETPIXEL_MOD_RGB555, DRAW_SETPIXEL_MUL_RGB555, DRAW_SETPIXEL_RGB555, FILLRECT, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, and SDL_BLENDMODE_MUL.
Referenced by SDL_BlendFillRect(), and SDL_BlendFillRects().
◆ SDL_BlendFillRect_RGB565()
Definition at line 56 of file SDL_blendfillrect.c.
59 unsigned inva = 0xff -
a;
References blendMode, DRAW_SETPIXEL_ADD_RGB565, DRAW_SETPIXEL_BLEND_RGB565, DRAW_SETPIXEL_MOD_RGB565, DRAW_SETPIXEL_MUL_RGB565, DRAW_SETPIXEL_RGB565, FILLRECT, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, and SDL_BLENDMODE_MUL.
Referenced by SDL_BlendFillRect(), and SDL_BlendFillRects().
◆ SDL_BlendFillRect_RGB888()
Definition at line 82 of file SDL_blendfillrect.c.
85 unsigned inva = 0xff -
a;
References blendMode, DRAW_SETPIXEL_ADD_RGB888, DRAW_SETPIXEL_BLEND_RGB888, DRAW_SETPIXEL_MOD_RGB888, DRAW_SETPIXEL_MUL_RGB888, DRAW_SETPIXEL_RGB888, FILLRECT, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, and SDL_BLENDMODE_MUL.
Referenced by SDL_BlendFillRect(), and SDL_BlendFillRects().
◆ SDL_BlendFillRect_RGBA()
Definition at line 185 of file SDL_blendfillrect.c.
189 unsigned inva = 0xff -
a;
References blendMode, SDL_PixelFormat::BytesPerPixel, DRAW_SETPIXEL_ADD_RGBA, DRAW_SETPIXEL_BLEND_RGBA, DRAW_SETPIXEL_MOD_RGBA, DRAW_SETPIXEL_MUL_RGBA, DRAW_SETPIXEL_RGBA, FILLRECT, SDL_PixelFormat::format, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, SDL_BLENDMODE_MUL, and SDL_Unsupported.
Referenced by SDL_BlendFillRect(), and SDL_BlendFillRects().
◆ SDL_BlendFillRects()
Definition at line 284 of file SDL_blendfillrect.c.
298 if (
dst->format->BitsPerPixel < 8) {
299 return SDL_SetError(
"SDL_BlendFillRects(): Unsupported surface format");
309 switch (
dst->format->BitsPerPixel) {
311 switch (
dst->format->Rmask) {
317 switch (
dst->format->Rmask) {
323 switch (
dst->format->Rmask) {
325 if (!
dst->format->Amask) {
338 if (!
dst->format->Amask) {
References blendMode, DRAW_MUL, i, NULL, rect, SDL_BlendFillRect_ARGB8888(), SDL_BlendFillRect_RGB(), SDL_BlendFillRect_RGB555(), SDL_BlendFillRect_RGB565(), SDL_BlendFillRect_RGB888(), SDL_BlendFillRect_RGBA(), SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_IntersectRect, and SDL_SetError.
Referenced by SW_RunCommandQueue().
#define DRAW_SETPIXEL_ARGB8888
static SDL_BlendMode blendMode
A collection of pixels used in software blitting.
#define DRAW_SETPIXEL_RGB
GLboolean GLboolean GLboolean b
#define DRAW_SETPIXEL_MUL_RGB555
GLuint GLuint GLsizei count
#define DRAW_SETPIXEL_BLEND_ARGB8888
#define DRAW_SETPIXEL_BLEND_RGB888
#define DRAW_SETPIXEL_MUL_RGB565
GLdouble GLdouble GLdouble r
#define DRAW_SETPIXEL_MUL_RGB888
#define SDL_IntersectRect
#define DRAW_SETPIXEL_BLEND_RGB555
#define DRAW_SETPIXEL_BLEND_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_RGB555
GLboolean GLboolean GLboolean GLboolean a
#define DRAW_SETPIXEL_BLEND_RGBA
#define DRAW_SETPIXEL_ADD_RGB
#define DRAW_SETPIXEL_MOD_ARGB8888
#define DRAW_SETPIXEL_MUL_RGB
#define DRAW_SETPIXEL_MOD_RGB888
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_RGB565
#define DRAW_SETPIXEL_ADD_RGB888
static int SDL_BlendFillRect_RGB555(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXEL_ADD_RGB565
#define DRAW_SETPIXEL_MOD_RGB
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_RGBA
#define DRAW_SETPIXEL_MOD_RGB565
#define FILLRECT(type, op)
#define DRAW_SETPIXEL_BLEND_RGB
#define DRAW_SETPIXEL_ADD_ARGB8888
#define DRAW_SETPIXEL_MUL_RGBA
#define DRAW_SETPIXEL_MOD_RGBA
static int SDL_BlendFillRect_RGBA(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
A rectangle, with the origin at the upper left (integer).
#define DRAW_SETPIXEL_RGBA
#define DRAW_SETPIXEL_RGB888
#define SDL_Unsupported()
EGLSurface EGLint * rects
SDL_BlendMode
The blend mode used in SDL_RenderCopy() and drawing operations.
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
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_RGB555
#define DRAW_SETPIXEL_ADD_RGB555
#define DRAW_SETPIXEL_MUL_ARGB8888