Test for valid, supported PNM file.
1 if the image is a PNM and the PNM format support is compiled into SDL_image. 0 is returned otherwise.
Binds to C-function in SDL_image.h
int IMG_isPNM(SDL_RWops *src)
// Test sample.pnm to see if it is a PNM SDL_RWops *rwop; rwop=SDL_RWFromFile("sample.pnm", "rb"); if(IMG_isPNM(rwop)) printf("sample.pnm is a PNM file.\n"); else printf("sample.pnm is not a PNM file, or PNM support is not available.\n");
SdlImage Class | Tao.Sdl Namespace | IMG_LoadTyped_RW