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

Function IsSupportedFormat

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

Source from the content-addressed store, hash-verified

985}
986
987static SDL_bool
988IsSupportedFormat(SDL_Renderer * renderer, Uint32 format)
989{
990 Uint32 i;
991
992 for (i = 0; i < renderer->info.num_texture_formats; ++i) {
993 if (renderer->info.texture_formats[i] == format) {
994 return SDL_TRUE;
995 }
996 }
997 return SDL_FALSE;
998}
999
1000static Uint32
1001GetClosestSupportedFormat(SDL_Renderer * renderer, Uint32 format)

Callers 1

SDL_CreateTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected