Go to the source code of this file.
|
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 196 of file SDL_blendpoint.c.
204 if (
dst->format->BitsPerPixel < 8) {
205 return SDL_SetError(
"SDL_BlendPoint(): Unsupported surface format");
210 x >= (
dst->clip_rect.x +
dst->clip_rect.w) ||
211 y >= (
dst->clip_rect.y +
dst->clip_rect.h)) {
221 switch (
dst->format->BitsPerPixel) {
223 switch (
dst->format->Rmask) {
229 switch (
dst->format->Rmask) {
235 switch (
dst->format->Rmask) {
237 if (!
dst->format->Amask) {
249 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_BlendPoints()
Definition at line 257 of file SDL_blendpoint.c.
273 if (
dst->format->BitsPerPixel < 8) {
274 return SDL_SetError(
"SDL_BlendPoints(): Unsupported surface format");
284 switch (
dst->format->BitsPerPixel) {
286 switch (
dst->format->Rmask) {
293 switch (
dst->format->Rmask) {
300 switch (
dst->format->Rmask) {
302 if (!
dst->format->Amask) {
315 if (!
dst->format->Amask) {
322 minx =
dst->clip_rect.x;
323 maxx =
dst->clip_rect.x +
dst->clip_rect.w - 1;
324 miny =
dst->clip_rect.y;
325 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
static SDL_BlendMode blendMode
A collection of pixels used in software blitting.
GLboolean GLboolean GLboolean b
GLuint GLuint GLsizei count
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)
GLboolean GLboolean GLboolean GLboolean a
static int SDL_BlendPoint_RGB565(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
GLint GLint GLint GLint GLint x
static int SDL_BlendPoint_RGB(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
SDL_BlendMode
The blend mode used in SDL_RenderCopy() and drawing operations.
GLint GLint GLint GLint GLint GLint 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)
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_BlendPoint_ARGB8888(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)