Sign in to follow this  
knobby67

IMG_isTGA ? in SDL

Recommended Posts

Hi all, I use SDL image to load textures into my software and have just added a check using the IMF_is..., however (I might be going mad here) no TGA check appears to be included in the documentation, is this just missing from documentation, or from software or am I going a bit mad :s Thanks ! I could check the old way looking at the string.

Share this post


Link to post
Share on other sites
Yeh, TGA is a bit funny in SDL. They do support it with SDL_Load, but only if the extension is .tga. Also, to load it with SDL_Load_RW, you have to call SDL_LoadTGA_RW explicitly. Probably the support for IMG_isTGA is missing indeed, perhaps you can make your own, by checking what it is not?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this