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

Function SDL_SetTextureBlendMode

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

Source from the content-addressed store, hash-verified

1371}
1372
1373int
1374SDL_SetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode blendMode)
1375{
1376 SDL_Renderer *renderer;
1377
1378 CHECK_TEXTURE_MAGIC(texture, -1);
1379
1380 renderer = texture->renderer;
1381 if (!IsSupportedBlendMode(renderer, blendMode)) {
1382 return SDL_Unsupported();
1383 }
1384 texture->blendMode = blendMode;
1385 if (texture->native) {
1386 return SDL_SetTextureBlendMode(texture->native, blendMode);
1387 }
1388 return 0;
1389}
1390
1391int
1392SDL_GetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode *blendMode)

Callers 10

initializeTextureFunction · 0.85
loadFontFunction · 0.85
initializeTextureFunction · 0.85
initializeTexturesFunction · 0.85
LoadSpriteFunction · 0.85
unifont_load_textureFunction · 0.85
DrawCompositeFunction · 0.85
_testBlitBlendModeFunction · 0.85
render_testBlitBlendFunction · 0.85

Calls 1

IsSupportedBlendModeFunction · 0.85

Tested by 5

LoadSpriteFunction · 0.68
unifont_load_textureFunction · 0.68
DrawCompositeFunction · 0.68
_testBlitBlendModeFunction · 0.68
render_testBlitBlendFunction · 0.68