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

`#include "il_internal.h"`

Go to the source code of this file.

## Data Structures

struct | VTFHEAD

## Enumerations

enum | { IMAGE_FORMAT_NONE = -1, IMAGE_FORMAT_RGBA8888 = 0, IMAGE_FORMAT_ABGR8888, IMAGE_FORMAT_RGB888, IMAGE_FORMAT_BGR888, IMAGE_FORMAT_RGB565, IMAGE_FORMAT_I8, IMAGE_FORMAT_IA88, IMAGE_FORMAT_P8, IMAGE_FORMAT_A8, IMAGE_FORMAT_RGB888_BLUESCREEN, IMAGE_FORMAT_BGR888_BLUESCREEN,
IMAGE_FORMAT_ARGB8888, IMAGE_FORMAT_BGRA8888, IMAGE_FORMAT_DXT1, IMAGE_FORMAT_DXT3,
IMAGE_FORMAT_DXT5, IMAGE_FORMAT_BGRX8888, IMAGE_FORMAT_BGR565, IMAGE_FORMAT_BGRX5551,
IMAGE_FORMAT_BGRA4444, IMAGE_FORMAT_DXT1_ONEBITALPHA, IMAGE_FORMAT_BGRA5551, IMAGE_FORMAT_UV88,
IMAGE_FORMAT_UVWQ8888, IMAGE_FORMAT_RGBA16161616F, IMAGE_FORMAT_RGBA16161616, IMAGE_FORMAT_UVLX8888
}
enum | { TEXTUREFLAGS_POINTSAMPLE = 0x00000001, TEXTUREFLAGS_TRILINEAR = 0x00000002, TEXTUREFLAGS_CLAMPS = 0x00000004, TEXTUREFLAGS_CLAMPT = 0x00000008, TEXTUREFLAGS_ANISOTROPIC = 0x00000010, TEXTUREFLAGS_HINT_DXT5 = 0x00000020, TEXTUREFLAGS_NOCOMPRESS = 0x00000040, TEXTUREFLAGS_NORMAL = 0x00000080,
TEXTUREFLAGS_NOMIP = 0x00000100, TEXTUREFLAGS_NOLOD = 0x00000200, TEXTUREFLAGS_MINMIP = 0x00000400, TEXTUREFLAGS_PROCEDURAL = 0x00000800,
TEXTUREFLAGS_ONEBITALPHA = 0x00001000, TEXTUREFLAGS_EIGHTBITALPHA = 0x00002000, TEXTUREFLAGS_ENVMAP = 0x00004000, TEXTUREFLAGS_RENDERTARGET = 0x00008000,
TEXTUREFLAGS_DEPTHRENDERTARGET = 0x00010000, TEXTUREFLAGS_NODEBUGOVERRIDE = 0x00020000, TEXTUREFLAGS_SINGLECOPY = 0x00040000, TEXTUREFLAGS_ONEOVERMIPLEVELINALPHA = 0x00080000,
TEXTUREFLAGS_PREMULTCOLORBYONEOVERMIPLEVEL = 0x00100000, TEXTUREFLAGS_NORMALTODUDV = 0x00200000, TEXTUREFLAGS_ALPHATESTMIPGENERATION = 0x00400000, TEXTUREFLAGS_NODEPTHBUFFER = 0x00800000,
TEXTUREFLAGS_NICEFILTERED = 0x01000000, TEXTUREFLAGS_CLAMPU = 0x02000000
}

## Functions

ILboolean | iIsValidVtf (void)
ILboolean | iGetVtfHead (VTFHEAD *Header)
ILboolean | iCheckVtf (VTFHEAD *Header)
ILboolean | iLoadVtfInternal (void)
ILboolean | VtfInitFacesMipmaps (ILimage *BaseImage, ILuint NumFaces, VTFHEAD *Header)
ILboolean | VtfInitMipmaps (ILimage *BaseImage, VTFHEAD *Header)
ILboolean | VtfReadData (void)
ILboolean | VtfDecompressDXT1 (ILimage *Image)
ILboolean | VtfDecompressDXT5 (ILimage *Image)

## Enumeration Type Documentation

anonymous enum

Enumerator:

  IMAGE_FORMAT_NONE |
  IMAGE_FORMAT_RGBA8888 |
  IMAGE_FORMAT_ABGR8888 |
  IMAGE_FORMAT_RGB888 |
  IMAGE_FORMAT_BGR888 |
  IMAGE_FORMAT_RGB565 |
  IMAGE_FORMAT_I8 |
  IMAGE_FORMAT_IA88 |
  IMAGE_FORMAT_P8 |
  IMAGE_FORMAT_A8 |
  IMAGE_FORMAT_RGB888_BLUESCREEN |
  IMAGE_FORMAT_BGR888_BLUESCREEN |
  IMAGE_FORMAT_ARGB8888 |
  IMAGE_FORMAT_BGRA8888 |
  IMAGE_FORMAT_DXT1 |
  IMAGE_FORMAT_DXT3 |
  IMAGE_FORMAT_DXT5 |
  IMAGE_FORMAT_BGRX8888 |
  IMAGE_FORMAT_BGR565 |
  IMAGE_FORMAT_BGRX5551 |
  IMAGE_FORMAT_BGRA4444 |
  IMAGE_FORMAT_DXT1_ONEBITALPHA |
  IMAGE_FORMAT_BGRA5551 |
  IMAGE_FORMAT_UV88 |
  IMAGE_FORMAT_UVWQ8888 |
  IMAGE_FORMAT_RGBA16161616F |
  IMAGE_FORMAT_RGBA16161616 |
  IMAGE_FORMAT_UVLX8888 |

anonymous enum

Enumerator:

  TEXTUREFLAGS_POINTSAMPLE |
  TEXTUREFLAGS_TRILINEAR |
  TEXTUREFLAGS_CLAMPS |
  TEXTUREFLAGS_CLAMPT |
  TEXTUREFLAGS_ANISOTROPIC |
  TEXTUREFLAGS_HINT_DXT5 |
  TEXTUREFLAGS_NOCOMPRESS |
  TEXTUREFLAGS_NORMAL |
  TEXTUREFLAGS_NOMIP |
  TEXTUREFLAGS_NOLOD |
  TEXTUREFLAGS_MINMIP |
  TEXTUREFLAGS_PROCEDURAL |
  TEXTUREFLAGS_ONEBITALPHA |
  TEXTUREFLAGS_EIGHTBITALPHA |
  TEXTUREFLAGS_ENVMAP |
  TEXTUREFLAGS_RENDERTARGET |
  TEXTUREFLAGS_DEPTHRENDERTARGET |
  TEXTUREFLAGS_NODEBUGOVERRIDE |
  TEXTUREFLAGS_SINGLECOPY |
  TEXTUREFLAGS_ONEOVERMIPLEVELINALPHA |
  TEXTUREFLAGS_PREMULTCOLORBYONEOVERMIPLEVEL |
  TEXTUREFLAGS_NORMALTODUDV |
  TEXTUREFLAGS_ALPHATESTMIPGENERATION |
  TEXTUREFLAGS_NODEPTHBUFFER |
  TEXTUREFLAGS_NICEFILTERED |
  TEXTUREFLAGS_CLAMPU |

## Function Documentation

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 iLoadVtfInternal | ( | void |  | ) |

Referenced by ilLoadVtfF(), and ilLoadVtfL().

ILboolean VtfDecompressDXT1 | ( | ILimage * | Image | ) |

ILboolean VtfDecompressDXT5 | ( | ILimage * | Image | ) |

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

Referenced by iLoadVtfInternal().

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

Referenced by VtfInitFacesMipmaps().

ILboolean VtfReadData | ( | void |  | ) |