World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Функции | |
DECLSPEC SDL_BlendMode SDLCALL | SDL_ComposeCustomBlendMode (SDL_BlendFactor srcColorFactor, SDL_BlendFactor dstColorFactor, SDL_BlendOperation colorOperation, SDL_BlendFactor srcAlphaFactor, SDL_BlendFactor dstAlphaFactor, SDL_BlendOperation alphaOperation) |
Create a custom blend mode, which may or may not be supported by a given renderer. Подробнее... | |
Header file declaring the SDL_BlendMode enumeration
См. определение в файле SDL_blendmode.h
enum SDL_BlendMode |
The blend mode used in SDL_RenderCopy() and drawing operations.
См. определение в файле SDL_blendmode.h строка 40
enum SDL_BlendOperation |
The blend operation used when combining source and destination pixel components.
См. определение в файле SDL_blendmode.h строка 65
enum SDL_BlendFactor |
The normalized factor used to multiply pixel components.
См. определение в файле SDL_blendmode.h строка 78
DECLSPEC SDL_BlendMode SDLCALL SDL_ComposeCustomBlendMode | ( | SDL_BlendFactor | srcColorFactor, |
SDL_BlendFactor | dstColorFactor, | ||
SDL_BlendOperation | colorOperation, | ||
SDL_BlendFactor | srcAlphaFactor, | ||
SDL_BlendFactor | dstAlphaFactor, | ||
SDL_BlendOperation | alphaOperation | ||
) |
Create a custom blend mode, which may or may not be supported by a given renderer.
srcColorFactor | source color factor |
dstColorFactor | destination color factor |
colorOperation | color operation |
srcAlphaFactor | source alpha factor |
dstAlphaFactor | destination alpha factor |
alphaOperation | alpha operation |
The result of the blend mode operation will be: dstRGB = dstRGB * dstColorFactor colorOperation srcRGB * srcColorFactor and dstA = dstA * dstAlphaFactor alphaOperation srcA * srcAlphaFactor