MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY ilIsValid

Function ILAPIENTRY ilIsValid

DevIL/src-IL/src/il_io.cpp:484–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482
483
484ILboolean ILAPIENTRY ilIsValid(ILenum Type, ILconst_string FileName)
485{
486 if (FileName == NULL) {
487 ilSetError(IL_INVALID_PARAM);
488 return IL_FALSE;
489 }
490
491 switch (Type)
492 {
493 #ifndef IL_NO_TGA
494 case IL_TGA:
495 return ilIsValidTga(FileName);
496 #endif
497
498 #ifndef IL_NO_JPG
499 case IL_JPG:
500 return ilIsValidJpeg(FileName);
501 #endif
502
503 #ifndef IL_NO_DDS
504 case IL_DDS:
505 return ilIsValidDds(FileName);
506 #endif
507
508 #ifndef IL_NO_PNG
509 case IL_PNG:
510 return ilIsValidPng(FileName);
511 #endif
512
513 #ifndef IL_NO_BMP
514 case IL_BMP:
515 return ilIsValidBmp(FileName);
516 #endif
517
518 #ifndef IL_NO_DICOM
519 case IL_DICOM:
520 return ilIsValidDicom(FileName);
521 #endif
522
523 #ifndef IL_NO_EXR
524 case IL_EXR:
525 return ilIsValidExr(FileName);
526 #endif
527
528 #ifndef IL_NO_GIF
529 case IL_GIF:
530 return ilIsValidGif(FileName);
531 #endif
532
533 #ifndef IL_NO_HDR
534 case IL_HDR:
535 return ilIsValidHdr(FileName);
536 #endif
537
538 #ifndef IL_NO_ICNS
539 case IL_ICNS:
540 return ilIsValidIcns(FileName);
541 #endif

Callers

nothing calls this directly

Calls 15

ilSetErrorFunction · 0.85
ilIsValidTgaFunction · 0.85
ilIsValidJpegFunction · 0.85
ilIsValidDdsFunction · 0.85
ilIsValidPngFunction · 0.85
ilIsValidBmpFunction · 0.85
ilIsValidDicomFunction · 0.85
ilIsValidGifFunction · 0.85
ilIsValidHdrFunction · 0.85
ilIsValidIcnsFunction · 0.85
ilIsValidIwiFunction · 0.85
ilIsValidIlbmFunction · 0.85

Tested by

no test coverage detected