Module fermium::blendmode[][src]

Support module for pixel blending.

Structs

SDL_BlendFactor

A newtype'd blend factor value.

SDL_BlendMode

A newtype'd blend operation value.

SDL_BlendOperation

A newtype'd blend operation value.

Constants

SDL_BLENDFACTOR_DST_ALPHA

RGBA: dstA, dstA, dstA, dstA

SDL_BLENDFACTOR_DST_COLOR

RGBA: dstR, dstG, dstB, dstA

SDL_BLENDFACTOR_ONE

RGBA: 1, 1, 1, 1

SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA

RGBA: 1-dstA, 1-dstA, 1-dstA, 1-dstA

SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR

RGBA: 1-dstR, 1-dstG, 1-dstB, 1-dstA

SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA

RGBA: 1-srcA, 1-srcA, 1-srcA, 1-srcA

SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR

RGBA: 1-srcR, 1-srcG, 1-srcB, 1-srcA

SDL_BLENDFACTOR_SRC_ALPHA

RGBA: srcA, srcA, srcA, srcA

SDL_BLENDFACTOR_SRC_COLOR

RGBA: srcR, srcG, srcB, srcA

SDL_BLENDFACTOR_ZERO

RGBA: 0, 0, 0, 0

SDL_BLENDMODE_ADD

additive blending

SDL_BLENDMODE_BLEND

alpha blending

SDL_BLENDMODE_INVALID

Sentinel for an invalid blend mode.

SDL_BLENDMODE_MOD

color modulate

SDL_BLENDMODE_MUL

color multiply

SDL_BLENDMODE_NONE

no blending

SDL_BLENDOPERATION_ADD

Op: dst + src: supported by all renderers

SDL_BLENDOPERATION_MAXIMUM

Op: max(dst, src) : supported by D3D11

SDL_BLENDOPERATION_MINIMUM

Op: min(dst, src) : supported by D3D11

SDL_BLENDOPERATION_REV_SUBTRACT

Op: src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES

SDL_BLENDOPERATION_SUBTRACT

Op: dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES

Functions

SDL_ComposeCustomBlendMode

Create a custom blend mode, which may or may not be supported by a given renderer