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

`#include "il_internal.h"`

Go to the source code of this file.

## Data Structures

struct | TARGAHEAD
struct | TARGAFOOTER
struct | TARGAEXT

## Defines

#define | TGA_EXT_LEN 495
#define | TGA_NO_DATA 0
#define | TGA_COLMAP_UNCOMP 1
#define | TGA_UNMAP_UNCOMP 2
#define | TGA_BW_UNCOMP 3
#define | TGA_COLMAP_COMP 9
#define | TGA_UNMAP_COMP 10
#define | TGA_BW_COMP 11
#define | IMAGEDESC_ORIGIN_MASK 0x30
#define | IMAGEDESC_TOPLEFT 0x20
#define | IMAGEDESC_BOTLEFT 0x00
#define | IMAGEDESC_BOTRIGHT 0x10
#define | IMAGEDESC_TOPRIGHT 0x30

## Functions

ILboolean | iIsValidTarga ()
ILboolean | iGetTgaHead (TARGAHEAD *Header)
ILboolean | iCheckTarga (TARGAHEAD *Header)
ILboolean | iLoadTargaInternal (void)
ILboolean | iSaveTargaInternal (void)
ILboolean | iReadBwTga (TARGAHEAD *Header)
ILboolean | iReadColMapTga (TARGAHEAD *Header)
ILboolean | iReadUnmapTga (TARGAHEAD *Header)
ILboolean | iUncompressTgaData (ILimage *Image)
ILboolean | i16BitTarga (ILimage *Image)
void | iGetDateTime (ILuint *Month, ILuint *Day, ILuint *Yr, ILuint *Hr, ILuint *Min, ILuint *Sec)

## Define Documentation

#define IMAGEDESC_BOTLEFT 0x00

Referenced by iLoadTargaInternal().

#define IMAGEDESC_BOTRIGHT 0x10

Referenced by iLoadTargaInternal().

#define IMAGEDESC_ORIGIN_MASK 0x30

Referenced by iLoadTargaInternal().

#define IMAGEDESC_TOPLEFT 0x20

Referenced by iLoadTargaInternal().

#define IMAGEDESC_TOPRIGHT 0x30

Referenced by iLoadTargaInternal().

#define TGA_BW_COMP 11

Referenced by iCheckTarga(), iLoadTargaInternal(), and iReadBwTga().

#define TGA_BW_UNCOMP 3

Referenced by iCheckTarga(), and iLoadTargaInternal().

#define TGA_COLMAP_COMP 9

Referenced by iCheckTarga(), iLoadTargaInternal(), and iReadColMapTga().

#define TGA_COLMAP_UNCOMP 1

Referenced by iCheckTarga(), and iLoadTargaInternal().

#define TGA_EXT_LEN 495

#define TGA_NO_DATA 0

Referenced by iCheckTarga(), and iLoadTargaInternal().

#define TGA_UNMAP_COMP 10

Referenced by iCheckTarga(), iLoadTargaInternal(), and iReadUnmapTga().

#define TGA_UNMAP_UNCOMP 2

Referenced by iCheckTarga(), and iLoadTargaInternal().

## Function Documentation

ILboolean i16BitTarga | ( | ILimage * | Image | ) |

Referenced by iReadUnmapTga().

ILboolean iCheckTarga | ( | TARGAHEAD * | Header | ) |

Referenced by iIsValidTarga(), and iLoadTargaInternal().

void iGetDateTime | ( | ILuint * | Month,
|  | ILuint * | Day,
|  | ILuint * | Yr,
|  | ILuint * | Hr,
|  | ILuint * | Min,
|  | ILuint * | Sec |
| ) |  |  |

Referenced by iSaveTargaInternal().

ILboolean iGetTgaHead | ( | TARGAHEAD * | Header | ) |

Referenced by iIsValidTarga(), and iLoadTargaInternal().

ILboolean iIsValidTarga | ( |  | ) |

Referenced by ilIsValidTgaF(), and ilIsValidTgaL().

ILboolean iLoadTargaInternal | ( | void |  | ) |

Referenced by ilLoadTargaF(), and ilLoadTargaL().

ILboolean iReadBwTga | ( | TARGAHEAD * | Header | ) |

Referenced by iLoadTargaInternal().

ILboolean iReadColMapTga | ( | TARGAHEAD * | Header | ) |

Referenced by iLoadTargaInternal().

ILboolean iReadUnmapTga | ( | TARGAHEAD * | Header | ) |

Referenced by iLoadTargaInternal().

ILboolean iSaveTargaInternal | ( | void |  | ) |

Referenced by ilSaveTargaF(), and ilSaveTargaL().

ILboolean iUncompressTgaData | ( | ILimage * | Image | ) |

Referenced by iReadBwTga(), iReadColMapTga(), and iReadUnmapTga().