SDL Wiki
(This function is part of SDL_image, a separate library from SDL.)

IMG_LoadTexture

Load an image directly into a render texture.

Syntax

SDL_Texture * IMG_LoadTexture(SDL_Renderer *renderer, const char *file);

Function Parameters

renderer

SDL Render

file

image file name

Return Value

Returns SDL Texture, or NULL on error.

IMG_LoadTexture_RW
IMG_LoadTextureTyped_RW
SDL_DestroyTexture

CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.