|
|
On Sun, Nov 22, 2009 at 9:31 AM, jesseoffy <jesseo@xxxxxxxxxxxxxxxx> wrote:
> Hey, I tried making the basic SDL program where I make a window and display
> an image onto it. When I built the program, the window popped up, but no
> image. I placed the image in the same file as the Xcode project (I'm using a
> mac) and named it correctly. After it didn't work I copy pasted the exact
> program from the tutorial I was using, and the same results: window but no
> image. Any idea as to what I did wrong?
It sounds like you don't have the correct path to the image. The
working directory of your SDL app (the .app file) is by default set to
its parent. So for example if you put the image in
ProjectFolder/build/Debug where the .app file gets created you would
then be able to reference the file like IMG_Load("filename").
Todd Steinackle
http://www.noquarterarcade.com/
> _______________________________________________
> SDL mailing list
> SDL@xxxxxxxxxxxxxxxx
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
_______________________________________________
SDL mailing list
SDL@xxxxxxxxxxxxxxxx
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
|
|