Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #if !SDL_RENDER_DISABLED
36 unsigned r,
g,
b,
a, inva;
66 }
else if (
x1 ==
x2) {
127 unsigned r,
g,
b,
a, inva;
157 }
else if (
x1 ==
x2) {
218 unsigned r,
g,
b,
a, inva;
248 }
else if (
x1 ==
x2) {
310 unsigned r,
g,
b,
a, inva;
340 }
else if (
x1 ==
x2) {
402 unsigned r,
g,
b,
a, inva;
432 }
else if (
x1 ==
x2) {
493 unsigned r,
g,
b,
a, inva;
523 }
else if (
x1 ==
x2) {
584 unsigned r,
g,
b,
a, inva;
614 }
else if (
x1 ==
x2) {
681 if (fmt->
Rmask == 0x7C00) {
683 }
else if (fmt->
Rmask == 0xF800) {
690 if (fmt->
Rmask == 0x00FF0000) {
714 return SDL_SetError(
"SDL_BlendLine(): Passed NULL destination surface");
719 return SDL_SetError(
"SDL_BlendLine(): Unsupported surface format");
728 func(
dst,
x1,
y1,
x2,
y2,
blendMode,
r,
g,
b,
a,
SDL_TRUE);
743 return SDL_SetError(
"SDL_BlendLines(): Passed NULL destination surface");
748 return SDL_SetError(
"SDL_BlendLines(): Unsupported surface format");
766 func(
dst,
x1,
y1,
x2,
y2,
blendMode,
r,
g,
b,
a, draw_end);
#define DLINE(type, op, draw_end)
GLfixed GLfixed GLint GLint GLfixed points
#define DRAW_SETPIXEL_ARGB8888
static SDL_BlendMode blendMode
#define DRAW_SETPIXELXY_ARGB8888(x, y)
A collection of pixels used in software blitting.
#define DRAW_SETPIXEL_RGB
static void SDL_BlendLine_RGB565(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 _r, Uint8 _g, Uint8 _b, Uint8 _a, SDL_bool draw_end)
GLboolean GLboolean GLboolean b
#define DRAW_SETPIXELXY4_BLEND_RGBA(x, y)
static void SDL_BlendLine_RGB888(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 _r, Uint8 _g, Uint8 _b, Uint8 _a, SDL_bool draw_end)
GLuint GLuint GLsizei count
#define DRAW_SETPIXEL_BLEND_ARGB8888
#define DRAW_SETPIXEL_BLEND_RGB888
#define DRAW_SETPIXELXY4_RGB(x, y)
#define DRAW_SETPIXELXY2_ADD_RGB(x, y)
int SDL_BlendLine(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
GLdouble GLdouble GLdouble r
#define DRAW_SETPIXEL_BLEND_RGB555
#define DRAW_SETPIXEL_BLEND_RGB565
#define DRAW_SETPIXELXY2_RGB(x, y)
#define DRAW_SETPIXEL_RGB555
GLuint GLfloat GLfloat GLfloat x1
GLboolean GLboolean GLboolean GLboolean a
int SDL_BlendLines(SDL_Surface *dst, const SDL_Point *points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXEL_BLEND_RGBA
static void SDL_BlendLine_RGBA4(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 _r, Uint8 _g, Uint8 _b, Uint8 _a, SDL_bool draw_end)
#define DRAW_SETPIXELXY_RGB888(x, y)
#define DRAW_SETPIXEL_ADD_RGB
#define DRAW_SETPIXEL_MOD_ARGB8888
#define DRAW_SETPIXELXY_ADD_RGB555(x, y)
#define DRAW_SETPIXEL_MOD_RGB888
#define DRAW_SETPIXELXY_ADD_RGB565(x, y)
#define DRAW_SETPIXELXY2_MOD_RGB(x, y)
GLint GLint GLint GLint GLint x
#define VLINE(type, op, draw_end)
#define DRAW_SETPIXELXY4_MOD_RGBA(x, y)
#define AALINE(x1, y1, x2, y2, opaque_op, blend_op, draw_end)
#define DRAW_SETPIXEL_RGB565
#define DRAW_SETPIXELXY_MOD_RGB888(x, y)
#define DRAW_SETPIXEL_ADD_RGB888
#define DRAW_SETPIXELXY4_ADD_RGB(x, y)
#define DRAW_SETPIXELXY_MOD_ARGB8888(x, y)
int SDL_BlendPoint(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
#define DRAW_SETPIXEL_ADD_RGB565
#define DRAW_SETPIXELXY_BLEND_ARGB8888(x, y)
#define DRAW_SETPIXEL_MOD_RGB
#define DRAW_SETPIXELXY_ADD_ARGB8888(x, y)
#define DRAW_SETPIXEL_ADD_RGBA
#define DRAW_SETPIXEL_MOD_RGB565
void(* BlendLineFunc)(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a, SDL_bool draw_end)
#define DRAW_SETPIXELXY_BLEND_RGB565(x, y)
#define DRAW_SETPIXELXY_RGB555(x, y)
static void SDL_BlendLine_RGB4(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 _r, Uint8 _g, Uint8 _b, Uint8 _a, SDL_bool draw_end)
#define DRAW_SETPIXEL_BLEND_RGB
#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_SETPIXEL_ADD_ARGB8888
#define DRAW_SETPIXEL_MOD_RGBA
static void SDL_BlendLine_ARGB8888(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 _r, Uint8 _g, Uint8 _b, Uint8 _a, SDL_bool draw_end)
#define DRAW_SETPIXELXY_MOD_RGB555(x, y)
The structure that defines a point.
#define DRAW_SETPIXELXY_BLEND_RGB888(x, y)
static void SDL_BlendLine_RGB555(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 _r, Uint8 _g, Uint8 _b, Uint8 _a, SDL_bool draw_end)
#define DRAW_SETPIXELXY4_BLEND_RGB(x, y)
#define DRAW_SETPIXELXY_BLEND_RGB555(x, y)
#define DRAW_SETPIXEL_RGBA
GLfixed GLfixed GLfixed y2
#define DRAW_SETPIXELXY_RGB565(x, y)
static BlendLineFunc SDL_CalculateBlendLineFunc(const SDL_PixelFormat *fmt)
#define DRAW_SETPIXELXY_ADD_RGB888(x, y)
#define HLINE(type, op, draw_end)
#define SDL_IntersectRectAndLine
static void SDL_BlendLine_RGB2(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 _r, Uint8 _g, Uint8 _b, Uint8 _a, SDL_bool draw_end)
#define DRAW_SETPIXEL_RGB888
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
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)
SDL_BlendMode
The blend mode used in SDL_RenderCopy() and drawing operations.
#define DRAW_SETPIXEL_MOD_RGB555
#define DRAW_SETPIXEL_ADD_RGB555