Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualfastcall22

Posted 24 July 2012 - 10:24 AM

You need to initialize SDL_Image by calling  IMG_Init, before you can use any of SDL_Image's features.

Although both sport similar-looking APIs, always keep in mind that SDL and SDL_Image are completely separate libraries.  For instance, to check any SDL-related errors, use SDL_GetError; to check any SDL_Image-related errors, use IMG_GetError.

#1fastcall22

Posted 24 July 2012 - 10:20 AM

You need to initialize SDL_Image by calling  IMG_Init, before you can use any of SDL_Image's features.

PARTNERS