# E:/DevIL/src-IL/src/il_vtf.c File Reference

`#include "il_internal.h"`
`#include "il_vtf.h"`
`#include "il_dds.h"`

## Defines

#define | max(a, b) ( ((a) > (b)) ? (a) : (b) )
#define | min(a, b) ( ((a) < (b)) ? (a) : (b) )

## Functions

ILboolean | ilIsValidVtf (ILconst_string FileName)
| Checks if the file specified in FileName is a valid VTF file.
ILboolean | ilIsValidVtfF (ILHANDLE File)
| Checks if the ILHANDLE contains a valid VTF file at the current position.
ILboolean | ilIsValidVtfL (const void *Lump, ILuint Size)
| Checks if Lump is a valid VTF lump.
ILboolean | iGetVtfHead (VTFHEAD *Header)
ILboolean | iIsValidVtf (void)
ILboolean | iCheckVtf (VTFHEAD *Header)
ILboolean | ilLoadVtf (ILconst_string FileName)
| Reads a VTF file.
ILboolean | ilLoadVtfF (ILHANDLE File)
| Reads an already-opened VTF file.
ILboolean | ilLoadVtfL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains a VTF.
ILboolean | iLoadVtfInternal (void)
ILuint | GetFaceFlag (ILuint FaceNum)
ILboolean | VtfInitFacesMipmaps (ILimage *BaseImage, ILuint NumFaces, VTFHEAD *Header)
ILboolean | VtfInitMipmaps (ILimage *BaseImage, VTFHEAD *Header)

## Define Documentation

#define max | ( | a,
|  | b |  | ) | ( ((a) > (b)) ? (a) : (b) )

Referenced by iLoadVtfInternal(), iluRotate_(), and Maximize().

#define min | ( | a,
|  | b |  | ) | ( ((a) < (b)) ? (a) : (b) )

Referenced by iluRotate_().

## Function Documentation

ILuint GetFaceFlag | ( | ILuint | FaceNum | ) |

Referenced by VtfInitFacesMipmaps().

ILboolean iCheckVtf | ( | VTFHEAD * | Header | ) |

Referenced by iIsValidVtf(), and iLoadVtfInternal().

ILboolean iGetVtfHead | ( | VTFHEAD * | Header | ) |

Referenced by iIsValidVtf(), and iLoadVtfInternal().

ILboolean iIsValidVtf | ( | void |  | ) |

Referenced by ilIsValidVtfF(), and ilIsValidVtfL().

ILboolean ilIsValidVtf | ( | ILconst_string | FileName | ) |

Checks if the file specified in FileName is a valid VTF file.

Referenced by ilIsValid().

ILboolean ilIsValidVtfF | ( | ILHANDLE | File | ) |

Checks if the ILHANDLE contains a valid VTF file at the current position.

Referenced by ilDetermineTypeF(), ilIsValidF(), and ilIsValidVtf().

ILboolean ilIsValidVtfL | ( | const void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Checks if Lump is a valid VTF lump.

Referenced by ilDetermineTypeL(), and ilIsValidL().

ILboolean ilLoadVtf | ( | ILconst_string | FileName | ) |

Reads a VTF file.

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadVtfF | ( | ILHANDLE | File | ) |

Reads an already-opened VTF file.

Referenced by ilLoadF(), and ilLoadVtf().

ILboolean ilLoadVtfL | ( | const void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Reads from a memory "lump" that contains a VTF.

Referenced by ilLoadL().

ILboolean iLoadVtfInternal | ( | void |  | ) |

Referenced by ilLoadVtfF(), and ilLoadVtfL().

ILboolean VtfInitFacesMipmaps | ( | ILimage * | BaseImage,
|  | ILuint | NumFaces,
|  | VTFHEAD * | Header |
| ) |  |  |

Referenced by iLoadVtfInternal().

ILboolean VtfInitMipmaps | ( | ILimage * | BaseImage,
|  | VTFHEAD * | Header |
| ) |  |  |

Referenced by VtfInitFacesMipmaps().