Go to the source code of this file.
|
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 196 of file SDL_blendfillrect.c.
206 if (
dst->format->BitsPerPixel < 8) {
207 return SDL_SetError(
"SDL_BlendFillRect(): Unsupported surface format");
227 switch (
dst->format->BitsPerPixel) {
229 switch (
dst->format->Rmask) {
235 switch (
dst->format->Rmask) {
241 switch (
dst->format->Rmask) {
243 if (!
dst->format->Amask) {
255 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_BlendFillRects()
Definition at line 263 of file SDL_blendfillrect.c.
277 if (
dst->format->BitsPerPixel < 8) {
278 return SDL_SetError(
"SDL_BlendFillRects(): Unsupported surface format");
288 switch (
dst->format->BitsPerPixel) {
290 switch (
dst->format->Rmask) {
296 switch (
dst->format->Rmask) {
302 switch (
dst->format->Rmask) {
304 if (!
dst->format->Amask) {
317 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().
static SDL_BlendMode blendMode
A collection of pixels used in software blitting.
GLboolean GLboolean GLboolean b
GLuint GLuint GLsizei count
GLdouble GLdouble GLdouble r
#define SDL_IntersectRect
static int SDL_BlendFillRect_ARGB8888(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
GLboolean GLboolean GLboolean GLboolean 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_RGB555(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)
A rectangle, with the origin at the upper left (integer).
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)