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

IMG_Load_RW

Load an image from a SDL datasource

Syntax

SDL_Surface * IMG_Load_RW(SDL_RWops *src, int freesrc);

Function Parameters

src

RWops

freesrc

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

Return Value

Returns SDL surface, or NULL on error

IMG_Load
IMG_LoadTyped_RW
SDL_FreeSurface

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.