Jump to content
  • Advertisement
Sign in to follow this  
knobby67

IMG_isTGA ? in SDL

This topic is 4297 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!