| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
|
|
| #ifndef _SDL_IMAGE_H |
| #define _SDL_IMAGE_H |
|
|
| #include "SDL.h" |
| #include "SDL_version.h" |
| #include "begin_code.h" |
|
|
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
|
|
| |
| |
| #define SDL_IMAGE_MAJOR_VERSION 1 |
| #define SDL_IMAGE_MINOR_VERSION 2 |
| #define SDL_IMAGE_PATCHLEVEL 12 |
|
|
| |
| |
| |
| #define SDL_IMAGE_VERSION(X) \ |
| { \ |
| (X)->major = SDL_IMAGE_MAJOR_VERSION; \ |
| (X)->minor = SDL_IMAGE_MINOR_VERSION; \ |
| (X)->patch = SDL_IMAGE_PATCHLEVEL; \ |
| } |
|
|
| |
| |
| |
| |
| extern DECLSPEC const SDL_version * SDLCALL IMG_Linked_Version(void); |
|
|
| typedef enum |
| { |
| IMG_INIT_JPG = 0x00000001, |
| IMG_INIT_PNG = 0x00000002, |
| IMG_INIT_TIF = 0x00000004, |
| IMG_INIT_WEBP = 0x00000008 |
| } IMG_InitFlags; |
|
|
| |
| |
| |
| |
| extern DECLSPEC int SDLCALL IMG_Init(int flags); |
|
|
| |
| extern DECLSPEC void SDLCALL IMG_Quit(void); |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type); |
| |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_Load(const char *file); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_Load_RW(SDL_RWops *src, int freesrc); |
|
|
| |
| |
| |
| extern DECLSPEC int SDLCALL IMG_InvertAlpha(int on); |
|
|
| |
| extern DECLSPEC int SDLCALL IMG_isICO(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isCUR(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isBMP(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isGIF(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isJPG(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isLBM(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isPCX(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isPNG(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isPNM(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isTIF(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isXCF(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isXPM(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isXV(SDL_RWops *src); |
| extern DECLSPEC int SDLCALL IMG_isWEBP(SDL_RWops *src); |
|
|
| |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadICO_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadCUR_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadBMP_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadGIF_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadJPG_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadLBM_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadPCX_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadPNG_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadPNM_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadTGA_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadTIF_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadXCF_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadXPM_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadXV_RW(SDL_RWops *src); |
| extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadWEBP_RW(SDL_RWops *src); |
|
|
| extern DECLSPEC SDL_Surface * SDLCALL IMG_ReadXPMFromArray(char **xpm); |
|
|
| |
| #define IMG_SetError SDL_SetError |
| #define IMG_GetError SDL_GetError |
|
|
| |
| #ifdef __cplusplus |
| } |
| #endif |
| #include "close_code.h" |
|
|
| #endif |
|
|