[SDL_image]can't load png April 13, 2009 01:16PM | Registered: 15 years ago Posts: 74 |
Re: [SDL_image]can't load png April 13, 2009 07:03PM | Registered: 15 years ago Posts: 703 |
Re: [SDL_image]can't load png April 13, 2009 08:30PM | Registered: 15 years ago Posts: 74 |
Re: [SDL_image]can't load png April 13, 2009 09:13PM | Registered: 15 years ago Posts: 703 |
/* See if an image is contained in a data source */ int IMG_isPNG(SDL_RWops *src) { return(0); } /* Load a PNG type image from an SDL datasource */ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) { return(NULL); }
Re: [SDL_image]can't load png April 14, 2009 10:23PM | Registered: 15 years ago Posts: 74 |
#include "SDL.h" #include "SDL_version.h" #include "begin_code.h" .. #include "close_code.h"
#include <SDL/SDL.h> #include <SDL/SDL_version.h> #include <SDL/begin_code.h> ... #include <SDL/close_code.h>
MG_bmp.c:52:23: error: SDL_error.h: No such file or directory IMG_bmp.c:53:23: error: SDL_video.h: No such file or directory IMG_bmp.c:54:24: error: SDL_endian.h: No such file or directory
Re: [SDL_image]can't load png April 15, 2009 03:17AM | Registered: 15 years ago Posts: 703 |
PS : I don't understand why png is not supported by libs provided in the wiki ???
Re: [SDL_image]can't load png April 15, 2009 01:42PM | Registered: 15 years ago Posts: 74 |
Re: [SDL_image]can't load png April 16, 2009 12:59AM | Registered: 15 years ago Posts: 703 |
#if SDL_BYTEORDER == SDL_BIG_ENDIAN rmask = 0x00ff0000; gmask = 0x0000ff00; bmask = 0x000000ff; amask = 0x00000000; #else rmask = 0x000000ff; gmask = 0x0000ff00; bmask = 0x00ff0000; amask = 0x00000000; #endif
Re: [SDL_image]can't load png April 16, 2009 02:09AM | Registered: 15 years ago Posts: 74 |
Re: [SDL_image]can't load png April 16, 2009 07:02PM | Registered: 15 years ago Posts: 74 |
/* The two types of endianness */ #define SDL_LIL_ENDIAN 1234 #define SDL_BIG_ENDIAN 4321 #ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */ #if defined(__hppa__) || \ defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \ (defined(__MIPS__) && defined(__MISPEB__)) || \ defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \ defined(__sparc__) #define SDL_BYTEORDER SDL_BIG_ENDIAN #else #define SDL_BYTEORDER SDL_LIL_ENDIAN #endif #endif /* !SDL_BYTEORDER */