[SDL] SDL_image and multiple partitions

Nathan Pierluissi npierluissi at yahoo.com
Thu Jul 19 17:38:28 PDT 2007


I am just loading one image.  I am using an image loading function I copied from the "lazy foo" tutorials.  I tried using the absolute path, 
  "F:\Documents\My Programs\Projects\name\name\window.png", 
   and it still did not load.  Any other suggestions would be appreciated.
  

Torsten Giebl <wizard at syntheticsw.com> wrote:
   
  Hello!

What is the exact structure of your image filenames
when you load them ? "\dsds" or "dsds" .. ?

If you only have a small number of images,
just change the names to absolute paths
like "C:\Images\dsds.jpg"

If your app then runs well again, it was the only problem
to find the images, if not, you forgott something else.

Absolute paths are only good for debugging,
for shipping your game/app after that, they are really bad.

In my code i use something like this :

err = GLB_Load_Sprite (the_file -> useDataDir ("gfx/sprites/spr/KNEE.spr"),
& Spr_Turrican_Knee,
GLB_BOB_TRANS_FALSE);


CU

_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



       
---------------------------------
Got a little couch potato? 
Check out fun summer activities for kids.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070719/0c67d777/attachment.html 


More information about the SDL mailing list