Function fermium::renderer::SDL_QueryTexture
source · pub unsafe extern "C" fn SDL_QueryTexture(
texture: *mut SDL_Texture,
format: *mut u32,
access: *mut c_int,
w: *mut c_int,
h: *mut c_int
) -> c_int
Expand description
Query the attributes of a texture
texture
A texture to be queried.format
A pointer filled in with the raw format of the texture. The actual format may differ, but pixel transfers will use this format.access
A pointer filled in with the actual access to the texture.w
A pointer filled in with the width of the texture in pixels.h
A pointer filled in with the height of the texture in pixels.
Returns: 0 on success, or -1 if the texture is not valid.