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

IMG_LoadTexture_RW

Load an image directly into a render texture.

Syntax

SDL_Texture * IMG_LoadTexture_RW(SDL_Renderer *renderer, SDL_RWops *src, int freesrc);

Function Parameters

renderer

SDL Render

src

RWops

freesrc

can be set so that the RWops is freed after this function is called

Return Value

Returns SDL Texture, or NULL on error

IMG_LoadTexture
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.