view R/rdyncall/inst/dynports/SDL_image.R @ 29:6cc2b7fc7ea2

bigger pydc update: - cleanups and refactoring - python 2 fixes in var conversions (especially w/ respect to int vs long) - fix to pydc.free() which didn't work at all - fix to return python bool as actual bool - test lib covering all conversions (manual verification, though :-/)
author Tassilo Philipp
date Wed, 08 Apr 2020 22:17:43 +0200
parents 0cfcc391201f
children
line wrap: on
line source

dynbind(c("SDL_image","SDL_image-1.2","SDL_image-1.2.so.0"), "
IMG_Init(i)i;
IMG_InvertAlpha(i)i;
IMG_Linked_Version()*<SDL_version>;
IMG_Load(*c)*<SDL_Surface>;
IMG_LoadBMP_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadCUR_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadGIF_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadICO_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadJPG_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadLBM_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadPCX_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadPNG_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadPNM_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadTGA_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadTIF_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadTyped_RW(*<SDL_RWops>i*c)*<SDL_Surface>;
IMG_LoadXCF_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadXPM_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_LoadXV_RW(*<SDL_RWops>)*<SDL_Surface>;
IMG_Load_RW(*<SDL_RWops>i)*<SDL_Surface>;
IMG_Quit()v;
IMG_ReadXPMFromArray(**c)*<SDL_Surface>;
IMG_isBMP(*<SDL_RWops>)i;
IMG_isCUR(*<SDL_RWops>)i;
IMG_isGIF(*<SDL_RWops>)i;
IMG_isICO(*<SDL_RWops>)i;
IMG_isJPG(*<SDL_RWops>)i;
IMG_isLBM(*<SDL_RWops>)i;
IMG_isPCX(*<SDL_RWops>)i;
IMG_isPNG(*<SDL_RWops>)i;
IMG_isPNM(*<SDL_RWops>)i;
IMG_isTIF(*<SDL_RWops>)i;
IMG_isXCF(*<SDL_RWops>)i;
IMG_isXPM(*<SDL_RWops>)i;
IMG_isXV(*<SDL_RWops>)i;
")
IMG_INIT_JPG=1;
IMG_INIT_PNG=2;
IMG_INIT_TIF=4;