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

`#include "il_internal.h"`
`#include "il_bits.h"`

## Data Structures

struct | SUNHEAD

## Defines

#define | IL_SUN_OLD 0x00
#define | IL_SUN_STANDARD 0x01
#define | IL_SUN_BYTE_ENC 0x02
#define | IL_SUN_RGB 0x03
#define | IL_SUN_TIFF 0x04
#define | IL_SUN_IFF 0x05
#define | IL_SUN_EXPER 0xFFFF
#define | IL_SUN_NO_MAP 0x00
#define | IL_SUN_RGB_MAP 0x01
#define | IL_SUN_RAW_MAP 0x02

## Functions

ILboolean | iLoadSunInternal (void)
ILboolean | iIsValidSun (void)
ILuint | iSunGetRle (ILubyte *Data, ILuint Length)
ILboolean | ilIsValidSun (ILconst_string FileName)
| Checks if the file specified in FileName is a valid Sun file.
ILboolean | ilIsValidSunF (ILHANDLE File)
| Checks if the ILHANDLE contains a valid Sun file at the current position.
ILboolean | ilIsValidSunL (const void *Lump, ILuint Size)
| Checks if Lump is a valid Sun lump.
ILboolean | iGetSunHead (SUNHEAD *Header)
ILboolean | iCheckSun (SUNHEAD *Header)
ILboolean | ilLoadSun (ILconst_string FileName)
ILboolean | ilLoadSunF (ILHANDLE File)
| Reads an already-opened Sun file.
ILboolean | ilLoadSunL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains a Sun.

## Define Documentation

#define IL_SUN_BYTE_ENC 0x02

Referenced by iCheckSun(), and iLoadSunInternal().

#define IL_SUN_EXPER 0xFFFF

#define IL_SUN_IFF 0x05

#define IL_SUN_NO_MAP 0x00

Referenced by iCheckSun(), and iLoadSunInternal().

#define IL_SUN_OLD 0x00

#define IL_SUN_RAW_MAP 0x02

#define IL_SUN_RGB 0x03

Referenced by iCheckSun(), and iLoadSunInternal().

#define IL_SUN_RGB_MAP 0x01

Referenced by iCheckSun().

#define IL_SUN_STANDARD 0x01

#define IL_SUN_TIFF 0x04

## Function Documentation

ILboolean iCheckSun | ( | SUNHEAD * | Header | ) |

Referenced by iIsValidSun(), and iLoadSunInternal().

ILboolean iGetSunHead | ( | SUNHEAD * | Header | ) |

Referenced by iIsValidSun(), and iLoadSunInternal().

ILboolean iIsValidSun | ( | void |  | ) |

Referenced by ilIsValidSunF(), and ilIsValidSunL().

ILboolean ilIsValidSun | ( | ILconst_string | FileName | ) |

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

Referenced by ilIsValid().

ILboolean ilIsValidSunF | ( | ILHANDLE | File | ) |

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

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

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

Checks if Lump is a valid Sun lump.

Referenced by ilDetermineTypeL(), and ilIsValidL().

ILboolean ilLoadSun | ( | ILconst_string | FileName | ) |

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadSunF | ( | ILHANDLE | File | ) |

Reads an already-opened Sun file.

Referenced by ilLoadF(), and ilLoadSun().

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

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

Referenced by ilLoadL().

ILboolean iLoadSunInternal | ( | void |  | ) |

Referenced by ilLoadSunF(), and ilLoadSunL().

ILuint iSunGetRle | ( | ILubyte * | Data,
|  | ILuint | Length |
| ) |  |  |

Referenced by iLoadSunInternal().