Go to the source code of this file.
|
static int | SDL_BlendPoint_RGB555 (SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
static int | SDL_BlendPoint_RGB565 (SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
static int | SDL_BlendPoint_RGB888 (SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
static int | SDL_BlendPoint_ARGB8888 (SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
static int | SDL_BlendPoint_RGB (SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
static int | SDL_BlendPoint_RGBA (SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
int | SDL_BlendPoint (SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
int | SDL_BlendPoints (SDL_Surface *dst, const SDL_Point *points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
◆ SDL_BlendPoint()
Definition at line 217 of file SDL_blendpoint.c.
225 if (
dst->format->BitsPerPixel < 8) {
226 return SDL_SetError(
"SDL_BlendPoint(): Unsupported surface format");
231 x >= (
dst->clip_rect.x +
dst->clip_rect.w) ||
232 y >= (
dst->clip_rect.y +
dst->clip_rect.h)) {
242 switch (
dst->format->BitsPerPixel) {
244 switch (
dst->format->Rmask) {
250 switch (
dst->format->Rmask) {
256 switch (
dst->format->Rmask) {
258 if (!
dst->format->Amask) {
270 if (!
dst->format->Amask) {
References blendMode, DRAW_MUL, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BlendPoint_ARGB8888(), SDL_BlendPoint_RGB(), SDL_BlendPoint_RGB555(), SDL_BlendPoint_RGB565(), SDL_BlendPoint_RGB888(), SDL_BlendPoint_RGBA(), and SDL_SetError.
Referenced by SDL_BlendLines().
◆ SDL_BlendPoint_ARGB8888()
Definition at line 108 of file SDL_blendpoint.c.
111 unsigned inva = 0xff -
a;
References blendMode, DRAW_SETPIXELXY_ADD_ARGB8888, DRAW_SETPIXELXY_ARGB8888, DRAW_SETPIXELXY_BLEND_ARGB8888, DRAW_SETPIXELXY_MOD_ARGB8888, DRAW_SETPIXELXY_MUL_ARGB8888, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, and SDL_BLENDMODE_MUL.
Referenced by SDL_BlendPoint(), and SDL_BlendPoints().
◆ SDL_BlendPoint_RGB()
Definition at line 134 of file SDL_blendpoint.c.
138 unsigned inva = 0xff -
a;
References blendMode, SDL_PixelFormat::BytesPerPixel, DRAW_SETPIXELXY2_ADD_RGB, DRAW_SETPIXELXY2_BLEND_RGB, DRAW_SETPIXELXY2_MOD_RGB, DRAW_SETPIXELXY2_MUL_RGB, DRAW_SETPIXELXY2_RGB, DRAW_SETPIXELXY4_ADD_RGB, DRAW_SETPIXELXY4_BLEND_RGB, DRAW_SETPIXELXY4_MOD_RGB, DRAW_SETPIXELXY4_MUL_RGB, DRAW_SETPIXELXY4_RGB, SDL_PixelFormat::format, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, SDL_BLENDMODE_MUL, and SDL_Unsupported.
Referenced by SDL_BlendPoint(), and SDL_BlendPoints().
◆ SDL_BlendPoint_RGB555()
Definition at line 30 of file SDL_blendpoint.c.
33 unsigned inva = 0xff -
a;
References blendMode, DRAW_SETPIXELXY_ADD_RGB555, DRAW_SETPIXELXY_BLEND_RGB555, DRAW_SETPIXELXY_MOD_RGB555, DRAW_SETPIXELXY_MUL_RGB555, DRAW_SETPIXELXY_RGB555, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, and SDL_BLENDMODE_MUL.
Referenced by SDL_BlendPoint(), and SDL_BlendPoints().
◆ SDL_BlendPoint_RGB565()
Definition at line 56 of file SDL_blendpoint.c.
59 unsigned inva = 0xff -
a;
References blendMode, DRAW_SETPIXELXY_ADD_RGB565, DRAW_SETPIXELXY_BLEND_RGB565, DRAW_SETPIXELXY_MOD_RGB565, DRAW_SETPIXELXY_MUL_RGB565, DRAW_SETPIXELXY_RGB565, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, and SDL_BLENDMODE_MUL.
Referenced by SDL_BlendPoint(), and SDL_BlendPoints().
◆ SDL_BlendPoint_RGB888()
Definition at line 82 of file SDL_blendpoint.c.
85 unsigned inva = 0xff -
a;
References blendMode, DRAW_SETPIXELXY_ADD_RGB888, DRAW_SETPIXELXY_BLEND_RGB888, DRAW_SETPIXELXY_MOD_RGB888, DRAW_SETPIXELXY_MUL_RGB888, DRAW_SETPIXELXY_RGB888, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, and SDL_BLENDMODE_MUL.
Referenced by SDL_BlendPoint(), and SDL_BlendPoints().
◆ SDL_BlendPoint_RGBA()
Definition at line 185 of file SDL_blendpoint.c.
189 unsigned inva = 0xff -
a;
References blendMode, SDL_PixelFormat::BytesPerPixel, DRAW_SETPIXELXY4_ADD_RGBA, DRAW_SETPIXELXY4_BLEND_RGBA, DRAW_SETPIXELXY4_MOD_RGBA, DRAW_SETPIXELXY4_MUL_RGBA, DRAW_SETPIXELXY4_RGBA, SDL_PixelFormat::format, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, SDL_BLENDMODE_MUL, and SDL_Unsupported.
Referenced by SDL_BlendPoint(), and SDL_BlendPoints().
◆ SDL_BlendPoints()
Definition at line 278 of file SDL_blendpoint.c.
294 if (
dst->format->BitsPerPixel < 8) {
295 return SDL_SetError(
"SDL_BlendPoints(): Unsupported surface format");
305 switch (
dst->format->BitsPerPixel) {
307 switch (
dst->format->Rmask) {
314 switch (
dst->format->Rmask) {
321 switch (
dst->format->Rmask) {
323 if (!
dst->format->Amask) {
336 if (!
dst->format->Amask) {
343 minx =
dst->clip_rect.x;
344 maxx =
dst->clip_rect.x +
dst->clip_rect.w - 1;
345 miny =
dst->clip_rect.y;
346 maxy =
dst->clip_rect.y +
dst->clip_rect.h - 1;
References blendMode, DRAW_MUL, i, NULL, SDL_BLENDMODE_ADD, SDL_BLENDMODE_BLEND, SDL_BlendPoint_ARGB8888(), SDL_BlendPoint_RGB(), SDL_BlendPoint_RGB555(), SDL_BlendPoint_RGB565(), SDL_BlendPoint_RGB888(), SDL_BlendPoint_RGBA(), and SDL_SetError.
Referenced by SW_RunCommandQueue().
GLfixed GLfixed GLint GLint GLfixed points
#define DRAW_SETPIXELXY4_MUL_RGB(x, y)
static SDL_BlendMode blendMode
#define DRAW_SETPIXELXY_ARGB8888(x, y)
A collection of pixels used in software blitting.
GLboolean GLboolean GLboolean b
#define DRAW_SETPIXELXY4_BLEND_RGBA(x, y)
#define DRAW_SETPIXELXY2_MUL_RGB(x, y)
#define DRAW_SETPIXELXY_MUL_RGB888(x, y)
GLuint GLuint GLsizei count
#define DRAW_SETPIXELXY4_RGB(x, y)
#define DRAW_SETPIXELXY_MUL_ARGB8888(x, y)
#define DRAW_SETPIXELXY2_ADD_RGB(x, y)
GLdouble GLdouble GLdouble r
static int SDL_BlendPoint_RGBA(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXELXY2_RGB(x, y)
GLboolean GLboolean GLboolean GLboolean a
#define DRAW_SETPIXELXY_RGB888(x, y)
static int SDL_BlendPoint_RGB565(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXELXY_ADD_RGB555(x, y)
#define DRAW_SETPIXELXY4_MUL_RGBA(x, y)
#define DRAW_SETPIXELXY_ADD_RGB565(x, y)
#define DRAW_SETPIXELXY2_MOD_RGB(x, y)
GLint GLint GLint GLint GLint x
#define DRAW_SETPIXELXY4_MOD_RGBA(x, y)
#define DRAW_SETPIXELXY_MOD_RGB888(x, y)
#define DRAW_SETPIXELXY4_ADD_RGB(x, y)
#define DRAW_SETPIXELXY_MOD_ARGB8888(x, y)
#define DRAW_SETPIXELXY_BLEND_ARGB8888(x, y)
static int SDL_BlendPoint_RGB(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXELXY_ADD_ARGB8888(x, y)
#define DRAW_SETPIXELXY_BLEND_RGB565(x, y)
#define DRAW_SETPIXELXY_RGB555(x, y)
#define DRAW_SETPIXELXY4_RGBA(x, y)
#define DRAW_SETPIXELXY2_BLEND_RGB(x, y)
#define DRAW_SETPIXELXY_MOD_RGB565(x, y)
GLint GLint GLint GLint GLint GLint y
#define DRAW_SETPIXELXY4_MOD_RGB(x, y)
#define DRAW_SETPIXELXY_MOD_RGB555(x, y)
#define DRAW_SETPIXELXY_MUL_RGB565(x, y)
#define DRAW_SETPIXELXY_BLEND_RGB888(x, y)
#define DRAW_SETPIXELXY4_BLEND_RGB(x, y)
#define DRAW_SETPIXELXY_BLEND_RGB555(x, y)
#define DRAW_SETPIXELXY_RGB565(x, y)
static int SDL_BlendPoint_RGB555(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
static int SDL_BlendPoint_RGB888(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXELXY_ADD_RGB888(x, y)
#define SDL_Unsupported()
#define DRAW_SETPIXELXY_MUL_RGB555(x, y)
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)
#define DRAW_SETPIXELXY4_ADD_RGBA(x, y)
static int SDL_BlendPoint_ARGB8888(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)