SDL_image... aieeeeeeeeeee!
Hmmm...
I was unable to get the function SDL_LoadPNG_RW to work whatsoever with only the SDL.framework.. Apparently only SDL_LoadBMP is included with the standard framework?
Anyways, I downloaded SDL_image.framework, added the framework to my "SDL Application" project, and I still can't get Xcode to recognize that I've added the framework... Apparently SDL_LoadPNG_RW is still "implicitly declared" (ie, it can't be found in any of the headers...
I've tried adding #include "SDL_image.h", "SDL/SDL_image.h" to my main.c file, the SDLMain.c file, and the SDLMain.h file, and I still can't properly load a PNG.. anyone know what's going on?
also, I guess my follow up question is whether it's possible to load a PNG without the SDL_image framework... thanks in advance.
I was unable to get the function SDL_LoadPNG_RW to work whatsoever with only the SDL.framework.. Apparently only SDL_LoadBMP is included with the standard framework?
Anyways, I downloaded SDL_image.framework, added the framework to my "SDL Application" project, and I still can't get Xcode to recognize that I've added the framework... Apparently SDL_LoadPNG_RW is still "implicitly declared" (ie, it can't be found in any of the headers...
I've tried adding #include "SDL_image.h", "SDL/SDL_image.h" to my main.c file, the SDLMain.c file, and the SDLMain.h file, and I still can't properly load a PNG.. anyone know what's going on?
also, I guess my follow up question is whether it's possible to load a PNG without the SDL_image framework... thanks in advance.
I think it should be
#include <SDL_image/SDL_image.h>
If that doesn't work, also try adding /Library/Frameworks/SDL_image.framework/Headers to your Header Search Paths in the project's get info window.
#include <SDL_image/SDL_image.h>
If that doesn't work, also try adding /Library/Frameworks/SDL_image.framework/Headers to your Header Search Paths in the project's get info window.
Chopper, iSight Screensavers, DuckDuckDuck: http://majicjungle.com
Quote:whether it's possible to load a PNG without the SDL_image framework
Not without coding your own loader.
Probably your error is that there is no function named "SDL_LoadPNG_RW"; all SDL_image functions have the prefix "IMG_", so you should be using "IMG_LoadPNG_RW", and a quick look at the documentation confirms it.
Mark Bishop
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Trouble using SDL_image with XCode 3.2.3 Snow Leopard | code4fun | 1 | 3,593 |
Sep 22, 2010 10:47 PM Last Post: OneSadCookie |
|
| SDL_image and bmp loading | Duane | 13 | 7,382 |
Dec 21, 2009 09:14 AM Last Post: Skorche |
|
| Installing SDL_image & SDL_mixer | bronxbomber92 | 8 | 4,788 |
Oct 14, 2006 09:39 PM Last Post: szymczyk |
|
| SDL_image + libpng + Panther = version mismatch | BobbyWatson | 2 | 3,428 |
Oct 23, 2005 03:55 AM Last Post: BobbyWatson |
|
| I Need help with SDL_image.h | LidLad | 8 | 4,377 |
Oct 2, 2005 05:37 PM Last Post: LidLad |
|

