module lib.sdl2.image

Code Map

module lib.sdl2.image;


enum SDL_IMAGE_MAJOR_VERSION;
enum SDL_IMAGE_MINOR_VERSION;
enum SDL_IMAGE_PATCHLEVEL;
enum IMG_INIT_JPG;
enum IMG_INIT_PNG;
enum IMG_INIT_TIF;
enum IMG_INIT_WEBP;

alias IMG_InitFlags = i32;

fn IMG_Init(flags: i32) i32;
fn IMG_Quit();
fn IMG_LoadTyped_RW(src: SDL_RWops*, freesrc: i32, type: const(const(char)*)) SDL_Surface*;
fn IMG_Load(file: const(const(char)*)) SDL_Surface*;
fn IMG_Load_RW(src: SDL_RWops*, freesrc: i32) SDL_Surface*;
fn IMG_LoadTexture(renderer: SDL_Renderer*, file: const(const(char)*)) SDL_Texture*;
fn IMG_LoadTexture_RW(renderer: SDL_Renderer*, src: SDL_RWops*, freesrc: i32) SDL_Texture*;
fn IMG_LoadTextureTyped_RW(renderer: SDL_Renderer*, src: SDL_RWops*, freesrc: i32, type: const(const(char)*)) SDL_Texture*;
fn IMG_isICO(src: SDL_RWops*) i32;
fn IMG_isCUR(src: SDL_RWops*) i32;
fn IMG_isBMP(src: SDL_RWops*) i32;
fn IMG_isGIF(src: SDL_RWops*) i32;
fn IMG_isJPG(src: SDL_RWops*) i32;
fn IMG_isLBM(src: SDL_RWops*) i32;
fn IMG_isPCX(src: SDL_RWops*) i32;
fn IMG_isPNG(src: SDL_RWops*) i32;
fn IMG_isPNM(src: SDL_RWops*) i32;
fn IMG_isTIF(src: SDL_RWops*) i32;
fn IMG_isXCF(src: SDL_RWops*) i32;
fn IMG_isXPM(src: SDL_RWops*) i32;
fn IMG_isXV(src: SDL_RWops*) i32;
fn IMG_isWEBP(src: SDL_RWops*) i32;
fn IMG_LoadICO_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadCUR_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadBMP_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadGIF_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadJPG_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadLBM_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadPCX_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadPNG_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadPNM_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadTGA_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadTIF_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadXCF_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadXPM_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadXV_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_LoadWEBP_RW(src: SDL_RWops*) SDL_Surface*;
fn IMG_ReadXPMFromArray(xpm: char**) SDL_Surface*;
fn IMG_SavePNG(surface: SDL_Surface*, file: const(const(char)*)) i32;
fn IMG_SavePNG_RW(surface: SDL_Surface*, dst: SDL_RWops*, freedst: i32) i32;
fn IMG_SetError(msg: const(char)*) { }
fn IMG_GetError() const(char)* { }