- Main Page
- Data Structures
- Files

- File List
- Globals

# E:/DevIL/src-IL/include/il_files.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2009 by Denton Woods
    00005 // Last modified: 01/04/2009
    00006 //
    00007 // Filename: src-IL/include/il_files.h
    00008 //
    00009 // Description: File handling for DevIL
    00010 //
    00011 //-----------------------------------------------------------------------------
    00012
    00013 #ifndef FILES_H
    00014 #define FILES_H
    00015
    00016 #if defined (__FILES_C)
    00017 #define __FILES_EXTERN
    00018 #else
    00019 #define __FILES_EXTERN extern
    00020 #endif
    00021 #include <IL/il.h>
    00022
    00023
    00024 __FILES_EXTERN void ILAPIENTRY iPreserveReadFuncs(void);
    00025 __FILES_EXTERN void ILAPIENTRY iRestoreReadFuncs(void);
    00026 __FILES_EXTERN void ILAPIENTRY iPreserveWriteFuncs(void);
    00027 __FILES_EXTERN void ILAPIENTRY iRestoreWriteFuncs(void);
    00028
    00029 __FILES_EXTERN fEofProc         EofProc;
    00030 __FILES_EXTERN fGetcProc        GetcProc;
    00031 __FILES_EXTERN fReadProc        ReadProc;
    00032 __FILES_EXTERN fSeekRProc       SeekRProc;
    00033 __FILES_EXTERN fSeekWProc       SeekWProc;
    00034 __FILES_EXTERN fTellRProc       TellRProc;
    00035 __FILES_EXTERN fTellWProc       TellWProc;
    00036 __FILES_EXTERN fPutcProc        PutcProc;
    00037 __FILES_EXTERN fWriteProc       WriteProc;
    00038
    00039 __FILES_EXTERN ILHANDLE                 ILAPIENTRY iDefaultOpen(ILconst_string FileName);
    00040 __FILES_EXTERN void                     ILAPIENTRY iDefaultClose(ILHANDLE Handle);
    00041 __FILES_EXTERN ILint                    ILAPIENTRY iDefaultGetc(ILHANDLE Handle);
    00042 __FILES_EXTERN ILint                    ILAPIENTRY iDefaultRead(void *Buffer, ILuint Size, ILuint Number, ILHANDLE Handle);
    00043 __FILES_EXTERN ILint                    ILAPIENTRY iDefaultSeekR(ILHANDLE Handle, ILint Offset, ILint Mode);
    00044 __FILES_EXTERN ILint                    ILAPIENTRY iDefaultSeekW(ILHANDLE Handle, ILint Offset, ILint Mode);
    00045 __FILES_EXTERN ILint                    ILAPIENTRY iDefaultTellR(ILHANDLE Handle);
    00046 __FILES_EXTERN ILint                    ILAPIENTRY iDefaultTellW(ILHANDLE Handle);
    00047 __FILES_EXTERN ILint                    ILAPIENTRY iDefaultPutc(ILubyte Char, ILHANDLE Handle);
    00048 __FILES_EXTERN ILint                    ILAPIENTRY iDefaultWrite(const void *Buffer, ILuint Size, ILuint Number, ILHANDLE Handle);
    00049
    00050 __FILES_EXTERN void                             iSetInputFile(ILHANDLE File);
    00051 __FILES_EXTERN void                             iSetInputLump(const void *Lump, ILuint Size);
    00052 __FILES_EXTERN ILboolean                (ILAPIENTRY *ieof)(void);
    00053 __FILES_EXTERN ILHANDLE                 (ILAPIENTRY *iopenr)(ILconst_string);
    00054 __FILES_EXTERN void                             (ILAPIENTRY *icloser)(ILHANDLE);
    00055 __FILES_EXTERN ILint                    (ILAPIENTRY *igetc)(void);
    00056 __FILES_EXTERN ILuint                   (ILAPIENTRY *iread)(void *Buffer, ILuint Size, ILuint Number);
    00057 __FILES_EXTERN ILint                    (ILAPIENTRY *iseek)(ILint Offset, ILuint Mode);
    00058 __FILES_EXTERN ILuint                   (ILAPIENTRY *itell)(void);
    00059
    00060 __FILES_EXTERN void                             iSetOutputFile(ILHANDLE File);
    00061 __FILES_EXTERN void                             iSetOutputLump(void *Lump, ILuint Size);
    00062 __FILES_EXTERN void                             iSetOutputFake(void);
    00063 __FILES_EXTERN void                             (ILAPIENTRY *iclosew)(ILHANDLE);
    00064 __FILES_EXTERN ILHANDLE                 (ILAPIENTRY *iopenw)(ILconst_string);
    00065 __FILES_EXTERN ILint                    (ILAPIENTRY *iputc)(ILubyte Char);
    00066 __FILES_EXTERN ILint                    (ILAPIENTRY *iseekw)(ILint Offset, ILuint Mode);
    00067 __FILES_EXTERN ILuint                   (ILAPIENTRY *itellw)(void);
    00068 __FILES_EXTERN ILint                    (ILAPIENTRY *iwrite)(const void *Buffer, ILuint Size, ILuint Number);
    00069
    00070 __FILES_EXTERN ILHANDLE                 ILAPIENTRY iGetFile(void);
    00071 __FILES_EXTERN const ILubyte*   ILAPIENTRY iGetLump(void);
    00072
    00073 __FILES_EXTERN ILuint                   ILAPIENTRY ilprintf(const char *, ...);
    00074 __FILES_EXTERN void                             ipad(ILuint NumZeros);
    00075
    00076 __FILES_EXTERN ILboolean                iPreCache(ILuint Size);
    00077 __FILES_EXTERN void                             iUnCache(void);
    00078
    00079 #endif//FILES_H