Function sdl2_sys::SDL_QueryTexture

source ·
pub unsafe extern "C" fn SDL_QueryTexture(
    texture: *mut SDL_Texture,
    format: *mut Uint32,
    access: *mut c_int,
    w: *mut c_int,
    h: *mut c_int
) -> c_int
Expand description

\brief Query the attributes of a texture

\param texture A texture to be queried. \param format A pointer filled in with the raw format of the texture. The actual format may differ, but pixel transfers will use this format. \param access A pointer filled in with the actual access to the texture. \param w A pointer filled in with the width of the texture in pixels. \param h A pointer filled in with the height of the texture in pixels.

\return 0 on success, or -1 if the texture is not valid.