MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_SetRenderDrawBlendMode

Function SDL_SetRenderDrawBlendMode

deps/SDL2/src/render/SDL_render.c:2231–2241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2229}
2230
2231int
2232SDL_SetRenderDrawBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
2233{
2234 CHECK_RENDERER_MAGIC(renderer, -1);
2235
2236 if (!IsSupportedBlendMode(renderer, blendMode)) {
2237 return SDL_Unsupported();
2238 }
2239 renderer->blendMode = blendMode;
2240 return 0;
2241}
2242
2243int
2244SDL_GetRenderDrawBlendMode(SDL_Renderer * renderer, SDL_BlendMode *blendMode)

Callers 8

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
DrawCompositeFunction · 0.85
_hasBlendModesFunction · 0.85
_clearScreenFunction · 0.85

Calls 1

IsSupportedBlendModeFunction · 0.85

Tested by 8

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
DrawCompositeFunction · 0.68
_hasBlendModesFunction · 0.68
_clearScreenFunction · 0.68