Go to the source code of this file.
|
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) |
|
int | SDL_BlendLines (SDL_Surface *dst, const SDL_Point *points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
|
◆ SDL_BlendLine()
Definition at line 708 of file SDL_blendline.c.
710{
712
714 return SDL_SetError(
"SDL_BlendLine(): Passed NULL destination surface");
715 }
716
719 return SDL_SetError(
"SDL_BlendLine(): Unsupported surface format");
720 }
721
722
723
725 return 0;
726 }
727
728 func(
dst,
x1,
y1,
x2,
y2,
blendMode,
r,
g,
b,
a,
SDL_TRUE);
729 return 0;
730}
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)
static BlendLineFunc SDL_CalculateBlendLineFunc(const SDL_PixelFormat *fmt)
#define SDL_IntersectRectAndLine
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLfixed GLfixed GLfixed y2
GLuint GLfloat GLfloat GLfloat x1
GLboolean GLboolean GLboolean GLboolean a
static SDL_BlendMode blendMode
References blendMode, SDL_CalculateBlendLineFunc(), SDL_IntersectRectAndLine, SDL_SetError, and SDL_TRUE.
◆ SDL_BlendLines()
Definition at line 733 of file SDL_blendline.c.
735{
741
743 return SDL_SetError(
"SDL_BlendLines(): Passed NULL destination surface");
744 }
745
748 return SDL_SetError(
"SDL_BlendLines(): Unsupported surface format");
749 }
750
756
757
758
760 continue;
761 }
762
763
765
766 func(
dst,
x1,
y1,
x2,
y2,
blendMode,
r,
g,
b,
a, draw_end);
767 }
771 }
772 return 0;
773}
int SDL_BlendPoint(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
GLint GLint GLint GLint GLint GLint y
GLuint GLuint GLsizei count
GLint GLint GLint GLint GLint x
GLfixed GLfixed GLint GLint GLfixed points
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)
References blendMode, i, SDL_BlendPoint(), SDL_CalculateBlendLineFunc(), SDL_IntersectRectAndLine, and SDL_SetError.
Referenced by SW_RunCommandQueue().