MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / SDL_QueryTexture

Function SDL_QueryTexture

lib/sdl2/src/render/SDL_render.c:1287–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1285}
1286
1287int
1288SDL_QueryTexture(SDL_Texture * texture, Uint32 * format, int *access,
1289 int *w, int *h)
1290{
1291 CHECK_TEXTURE_MAGIC(texture, -1);
1292
1293 if (format) {
1294 *format = texture->format;
1295 }
1296 if (access) {
1297 *access = texture->access;
1298 }
1299 if (w) {
1300 *w = texture->w;
1301 }
1302 if (h) {
1303 *h = texture->h;
1304 }
1305 return 0;
1306}
1307
1308int
1309SDL_SetTextureColorMod(SDL_Texture * texture, Uint8 r, Uint8 g, Uint8 b)

Callers 14

mainFunction · 0.85
MoveSpritesFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
DrawOnViewportFunction · 0.85
mainFunction · 0.85
WatchJoystickFunction · 0.85
render_testBlitFunction · 0.85
render_testBlitColorFunction · 0.85
render_testBlitAlphaFunction · 0.85
_testBlitBlendModeFunction · 0.85

Calls

no outgoing calls

Tested by 13

mainFunction · 0.68
MoveSpritesFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
DrawOnViewportFunction · 0.68
mainFunction · 0.68
WatchJoystickFunction · 0.68
render_testBlitFunction · 0.68
render_testBlitColorFunction · 0.68
render_testBlitAlphaFunction · 0.68
_testBlitBlendModeFunction · 0.68