Author Topic: Uncooperative IMG_Load  (Read 3465 times)

Stoop Solo (OP)

  • Posts: 11
Uncooperative IMG_Load
« on: February 22, 2012, 07:01:07 am »
Hello all, me again with yet another question.

Has anyone had any luck with SDL's IMG_Load function? I don't seem to be able to get it to work in a Dingux executable, even with a simple test program that does nothing more than try to load a 16bit 320x240 TGA (which of course compiles and runs in CodeBlocks). A "cout" of the returned SDL_Surface seems to produce something resembling a valid pointer, but nothing seems to want to display.

Is the legacy Dingux SDL library more picky about which image file types it supports?


  • Posts: 1728
    • My devblog
Re: Uncooperative IMG_Load
« Reply #1 on: February 22, 2012, 11:34:28 am »
SDL_image has to be compiled with TGA support. It's the case on OpenDingux, but I'm not sure it's the same for legacy Dingux.

Stoop Solo (OP)

  • Posts: 11
Re: Uncooperative IMG_Load
« Reply #2 on: February 22, 2012, 05:20:11 pm »
Hmm.  From what you say, I suspect that's the case with legacy as well. Do you know which formats are supported "out-of-the-box", as it were?

Edit: Looks like .png is supported. I'll convert the TGAs and work with those instead. Thanks for the heads-up about TGA support, Ayla.
« Last Edit: February 23, 2012, 05:50:06 pm by Stoop Solo »