def texture_from_image(renderer, image_name):
soft_surface = ext.load_image(image_name)<EOL>texture = SDL_CreateTextureFromSurface(renderer.renderer, soft_surface)<EOL>SDL_FreeSurface(soft_surface)<EOL>return texture<EOL>
Create an SDL2 Texture from an image file