Load an image directly into a render texture.
    Args:
        renderer: The renderer to make the texture.
        file: The image file to load.

    Returns:
        A new texture

def load_texture(renderer, file):
    """Load an image directly into a render texture.
    Args:
        renderer: The renderer to make the texture.
        file: The image file to load.

    Returns:
        A new texture
    """
    return Texture._from_ptr(check_ptr_err(lib.IMG_LoadTexture(renderer._ptr, file)))