[SDL] SDL_image and multiple partitions
Alberto Luaces
aluaces at udc.es
Fri Jul 20 00:27:58 PDT 2007
Maybe escaping the backslashes?
"F:\\Documents\\My Programs\\Projects\\name\\name\\window.png"
El Viernes 20 Julio 2007, Nathan Pierluissi escribió:
> 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.
More information about the SDL
mailing list