SDL Loading bitmap (Newb)
Hello all,
I'm new to programming games on the mac. I'm using Xcode and started the tutorials on SDL i found on http://sol.gfxile.net/gp/index.html
Everything was going great up to lesson 13.
In this part the central idee is loading a bitmap. This however doesn't compile propely for me even when I use the provided source code.
Can anyone try the sourcecode found on the website and see if it works and if not fix it? I would be happy to know what's going wrong.
Source: http://sol.gfxile.net/gp/ch13.html
Thank you very much, Ed
I'm new to programming games on the mac. I'm using Xcode and started the tutorials on SDL i found on http://sol.gfxile.net/gp/index.html
Everything was going great up to lesson 13.
In this part the central idee is loading a bitmap. This however doesn't compile propely for me even when I use the provided source code.
Can anyone try the sourcecode found on the website and see if it works and if not fix it? I would be happy to know what's going wrong.
Source: http://sol.gfxile.net/gp/ch13.html
Thank you very much, Ed
The source compiled for me on the first time. I got a runtime error, but that's just because I didn't bother to drop the images into the appropriate directory. Make sure the .bmp images are under /Project/build/development before running.
What error do you get when you try to compile?
What error do you get when you try to compile?
I stored the bitmap in the same folder where the .xcodeproject is. This is probably not the same folder you are talking about. I'll follow your advice when I get home. This will probably fix it.
Thanks,
Ed
Thanks,
Ed
What you might want to try is instead of SDL_LoadBMP("tiles.bmp");
try
SDL_LoadBMP("yourapplicationname.app/Contents/Resources/tiles.bmp");
also make sure to add the bitmaps as an absolute path and you should probably copy the bitmaps into the project folder.
try
SDL_LoadBMP("yourapplicationname.app/Contents/Resources/tiles.bmp");
also make sure to add the bitmaps as an absolute path and you should probably copy the bitmaps into the project folder.
Can you please not put the word newb in your thread title, thank you.
Sir, e^iπ + 1 = 0, hence God exists; reply!
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| game newb | drunknbass | 11 | 3,711 |
Aug 16, 2008 01:26 PM Last Post: aardvarc |
|

