source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/Standalone/Hierarchical Systems Demo [OpenGL]/RESOURCES/include/IL/il.h @ 3255

Revision 3255, 19.4 KB checked in by szirmay, 15 years ago (diff)
Line 
1//-----------------------------------------------------------------------------
2//
3// ImageLib Sources
4// Copyright (C) 2000-2002 by Denton Woods
5// Last modified: 06/23/2002 <--Y2K Compliant! =]
6//
7// Filename: IL/il.h
8//
9// Description: The main include file for DevIL
10//
11//-----------------------------------------------------------------------------
12
13
14#ifndef __il_h_
15#ifndef __IL_H__
16
17#define __il_h_
18#define __IL_H__
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24//#define IL_NO_BMP
25//#define IL_NO_CUT
26//#define IL_NO_CHEAD
27//#define IL_NO_DCX
28//#define IL_NO_DDS
29//#define IL_NO_DOOM
30//#define IL_NO_GIF
31//#define IL_NO_ICO
32//#define IL_NO_JPG
33//#define IL_NO_LIF
34//#define IL_NO_MDL
35//#define IL_NO_MNG
36//#define IL_NO_PCD
37//#define IL_NO_PCX
38//#define IL_NO_PIC
39//#define IL_NO_PIX
40//#define IL_NO_PNG
41//#define IL_NO_PNM
42//#define IL_NO_PSD
43//#define IL_NO_PSP
44//#define IL_NO_PXR
45//#define IL_NO_RAW
46//#define IL_NO_SGI
47//#define IL_NO_TGA
48//#define IL_NO_TIF
49//#define IL_NO_WAL
50//#define IL_NO_XPM
51
52// Compiling Options
53#define IL_INLINE_ASM
54//#define IL_DEBUG
55//#define IL_STATIC_LIB
56//#define IL_NO_LCMS
57#ifdef _WIN32
58        #ifndef IL_USE_JPEGLIB_UNMODIFIED
59                #define IL_USE_JPEGLIB_UNMODIFIED
60        #endif
61#endif
62
63#ifdef _WIN32_WCE
64        #define IL_NO_GIF
65        #define IL_NO_JPG
66        #define IL_NO_MNG
67        #define IL_NO_PNG
68        #define IL_NO_TIF
69        #define IL_NO_LCMS
70#endif//_WIN32_WCE
71
72#ifdef DJGPP
73        #define IL_NO_GIF
74        #define IL_NO_JPG
75        #define IL_NO_MNG
76        #define IL_NO_PNG
77        #define IL_NO_TIF
78        #define IL_NO_LCMS
79#endif//DJGPP
80
81/*#ifdef __APPLE__
82        #define IL_NO_GIF
83        #define IL_NO_JPG
84        #define IL_NO_MNG
85        #define IL_NO_PNG
86        #define IL_NO_TIF
87        #define IL_NO_LCMS
88#endif//__APPLE__*/
89
90/*
91#ifdef _WIN32
92        #if defined(_MSC_VER) || defined(__BORLANDC__)
93                #ifndef IL_STATIC_LIB
94                        #ifndef _IL_BUILD_LIBRARY
95                                #pragma comment(lib, "Devil_DLL.lib")
96                        #endif
97                #else
98                        #ifndef _IL_BUILD_LIBRARY
99                                #ifdef  IL_DEBUG
100                                        #pragma comment(lib, "Devil_DBG.lib")
101                                #else
102                                        #pragma comment(lib, "Devil.lib")
103                                #endif//IL_DEBUG
104                        #endif
105                #endif
106        #endif
107#endif
108*/
109#include <stdio.h>
110
111typedef unsigned int    ILenum;
112typedef unsigned char   ILboolean;
113typedef unsigned int    ILbitfield;
114typedef char                    ILbyte;
115typedef short                   ILshort;
116typedef int                             ILint;
117typedef int                             ILsizei;
118typedef unsigned char   ILubyte;
119typedef unsigned short  ILushort;
120typedef unsigned int    ILuint;
121typedef float                   ILfloat;
122typedef float                   ILclampf;
123typedef double                  ILdouble;
124typedef double                  ILclampd;
125typedef void                    ILvoid;
126
127#ifdef _UNICODE
128        #ifndef _WIN32_WCE
129                #include <wchar.h>
130        #endif
131        typedef wchar_t* ILstring;
132#else
133        typedef char* ILstring;
134#endif//_UNICODE
135
136
137#define IL_FALSE                                                        0
138#define IL_TRUE                                                         1
139
140
141// Matches OpenGL's right now.
142#define IL_COLOUR_INDEX                                                 0x1900
143#define IL_COLOR_INDEX                                                  0x1900
144#define IL_RGB                                                          0x1907
145#define IL_RGBA                                                         0x1908
146#define IL_BGR                                                          0x80E0
147#define IL_BGRA                                                         0x80E1
148#define IL_LUMINANCE                                                    0x1909
149#define IL_LUMINANCE_ALPHA                                              0x190A
150
151
152#define IL_BYTE                                                         0x1400
153#define IL_UNSIGNED_BYTE                                                0x1401
154#define IL_SHORT                                                        0x1402
155#define IL_UNSIGNED_SHORT                                               0x1403
156#define IL_INT                                                          0x1404
157#define IL_UNSIGNED_INT                                                 0x1405
158#define IL_FLOAT                                                        0x1406
159#define IL_DOUBLE                                                       0x140A
160
161
162#define IL_VENDOR                                                       0x1F00
163#define IL_LOAD_EXT                                                     0x1F01
164#define IL_SAVE_EXT                                                     0x1F02
165
166
167//
168// IL-specific #define's
169//
170
171#define IL_VERSION_1_6_7                                        1
172#define IL_VERSION                                                      167
173
174
175// Attribute Bits
176#define IL_ORIGIN_BIT                                           0x00000001
177#define IL_FILE_BIT                                             0x00000002
178#define IL_PAL_BIT                                              0x00000004
179#define IL_FORMAT_BIT                                           0x00000008
180#define IL_TYPE_BIT                                             0x00000010
181#define IL_COMPRESS_BIT                                         0x00000020
182#define IL_LOADFAIL_BIT                                         0x00000040
183#define IL_FORMAT_SPECIFIC_BIT                                  0x00000080
184#define IL_ALL_ATTRIB_BITS                                      0x000FFFFF
185
186
187// Palette types
188#define IL_PAL_NONE                                             0x0400
189#define IL_PAL_RGB24                                            0x0401
190#define IL_PAL_RGB32                                            0x0402
191#define IL_PAL_RGBA32                                           0x0403
192#define IL_PAL_BGR24                                            0x0404
193#define IL_PAL_BGR32                                            0x0405
194#define IL_PAL_BGRA32                                           0x0406
195
196
197// Image types
198#define IL_TYPE_UNKNOWN                                         0x0000
199#define IL_BMP                                                          0x0420
200#define IL_CUT                                                          0x0421
201#define IL_DOOM                                                         0x0422
202#define IL_DOOM_FLAT                                            0x0423
203#define IL_ICO                                                          0x0424
204#define IL_JPG                                                          0x0425
205#define IL_JFIF                                                         0x0425
206#define IL_LBM                                                          0x0426
207#define IL_PCD                                                          0x0427
208#define IL_PCX                                                          0x0428
209#define IL_PIC                                                          0x0429
210#define IL_PNG                                                          0x042A
211#define IL_PNM                                                          0x042B
212#define IL_SGI                                                          0x042C
213#define IL_TGA                                                          0x042D
214#define IL_TIF                                                          0x042E
215#define IL_CHEAD                                                        0x042F
216#define IL_RAW                                                          0x0430
217#define IL_MDL                                                          0x0431
218#define IL_WAL                                                          0x0432
219#define IL_LIF                                                          0x0434
220#define IL_MNG                                                          0x0435
221#define IL_JNG                                                          0x0435
222#define IL_GIF                                                          0x0436
223#define IL_DDS                                                          0x0437
224#define IL_DCX                                                          0x0438
225#define IL_PSD                                                          0x0439
226#define IL_EXIF                                                         0x043A
227#define IL_PSP                                                          0x043B
228#define IL_PIX                                                          0x043C
229#define IL_PXR                                                          0x043D
230#define IL_XPM                                                          0x043E
231
232#define IL_JASC_PAL                                                     0x0475
233
234
235// Error Types
236#define IL_NO_ERROR                                                     0x0000
237#define IL_INVALID_ENUM                                         0x0501
238#define IL_OUT_OF_MEMORY                                        0x0502
239#define IL_FORMAT_NOT_SUPPORTED                         0x0503
240#define IL_INTERNAL_ERROR                                       0x0504
241#define IL_INVALID_VALUE                                        0x0505
242#define IL_ILLEGAL_OPERATION                            0x0506
243#define IL_ILLEGAL_FILE_VALUE                           0x0507
244#define IL_INVALID_FILE_HEADER                          0x0508
245#define IL_INVALID_PARAM                                        0x0509
246#define IL_COULD_NOT_OPEN_FILE                          0x050A
247#define IL_INVALID_EXTENSION                            0x050B
248#define IL_FILE_ALREADY_EXISTS                          0x050C
249#define IL_OUT_FORMAT_SAME                                      0x050D
250#define IL_STACK_OVERFLOW                                       0x050E
251#define IL_STACK_UNDERFLOW                                      0x050F
252#define IL_INVALID_CONVERSION                           0x0510
253#define IL_BAD_DIMENSIONS                                       0x0511
254#define IL_FILE_READ_ERROR                                      0x0512  // 05/12/2002: Addition by Sam.
255#define IL_FILE_WRITE_ERROR                                     0x0512
256
257#define IL_LIB_GIF_ERROR                                        0x05E1
258#define IL_LIB_JPEG_ERROR                                       0x05E2
259#define IL_LIB_PNG_ERROR                                        0x05E3
260#define IL_LIB_TIFF_ERROR                                       0x05E4
261#define IL_LIB_MNG_ERROR                                        0x05E5
262#define IL_UNKNOWN_ERROR                                        0x05FF
263
264
265// Origin Definitions
266#define IL_ORIGIN_SET                                           0x0600
267#define IL_ORIGIN_LOWER_LEFT                            0x0601
268#define IL_ORIGIN_UPPER_LEFT                            0x0602
269#define IL_ORIGIN_MODE                                          0x0603
270
271
272// Format and Type Mode Definitions
273#define IL_FORMAT_SET                                           0x0610
274#define IL_FORMAT_MODE                                          0x0611
275#define IL_TYPE_SET                                                     0x0612
276#define IL_TYPE_MODE                                            0x0613
277
278
279// File definitions
280#define IL_FILE_OVERWRITE                                       0x0620
281#define IL_FILE_MODE                                            0x0621
282
283
284// Palette definitions
285#define IL_CONV_PAL                                                     0x0630
286
287
288// Load fail definitions
289#define IL_DEFAULT_ON_FAIL                                      0x0632
290
291
292// Key colour definitions
293#define IL_USE_KEY_COLOUR                                       0x0635
294#define IL_USE_KEY_COLOR                                        0x0635
295
296
297// Interlace definitions
298#define IL_SAVE_INTERLACED                                      0x0639
299#define IL_INTERLACE_MODE                                       0x063A
300
301
302// Quantization definitions
303#define IL_QUANTIZATION_MODE                            0x0640
304#define IL_WU_QUANT                                                     0x0641
305#define IL_NEU_QUANT                                            0x0642
306#define IL_NEU_QUANT_SAMPLE                                     0x0643
307#define IL_MAX_QUANT_INDEXS                                     0x0644  //XIX : ILint : Maximum number of colors to reduce to, default of 256. and has a range of 2-256
308
309
310// Hints
311#define IL_FASTEST                                                      0x0660
312#define IL_LESS_MEM                                                     0x0661
313#define IL_DONT_CARE                                            0x0662
314#define IL_MEM_SPEED_HINT                                       0x0665
315#define IL_USE_COMPRESSION                                      0x0666
316#define IL_NO_COMPRESSION                                       0x0667
317#define IL_COMPRESSION_HINT                                     0x0668
318
319
320// Subimage types
321#define IL_SUB_NEXT                                                     0x0680
322#define IL_SUB_MIPMAP                                           0x0681
323#define IL_SUB_LAYER                                            0x0682
324
325
326// Compression definitions
327#define IL_COMPRESS_MODE                                        0x0700
328#define IL_COMPRESS_NONE                                        0x0701
329#define IL_COMPRESS_RLE                                         0x0702
330#define IL_COMPRESS_LZO                                         0x0703
331#define IL_COMPRESS_ZLIB                                        0x0704
332
333
334// File format-specific values
335#define IL_TGA_CREATE_STAMP                                     0x0710
336#define IL_JPG_QUALITY                                          0x0711
337#define IL_PNG_INTERLACE                                        0x0712
338#define IL_TGA_RLE                                                      0x0713
339#define IL_BMP_RLE                                                      0x0714
340#define IL_SGI_RLE                                                      0x0715
341#define IL_TGA_ID_STRING                                        0x0717
342#define IL_TGA_AUTHNAME_STRING                          0x0718
343#define IL_TGA_AUTHCOMMENT_STRING                       0x0719
344#define IL_PNG_AUTHNAME_STRING                          0x071A
345#define IL_PNG_TITLE_STRING                                     0x071B
346#define IL_PNG_DESCRIPTION_STRING                       0x071C
347#define IL_TIF_DESCRIPTION_STRING                       0x071D
348#define IL_TIF_HOSTCOMPUTER_STRING                      0x071E
349#define IL_TIF_DOCUMENTNAME_STRING                      0x071F
350#define IL_TIF_AUTHNAME_STRING                          0x0720
351#define IL_JPG_SAVE_FORMAT                                      0x0721
352#define IL_CHEAD_HEADER_STRING                          0x0722
353#define IL_PCD_PICNUM                                           0x0723
354
355#define IL_PNG_ALPHA_INDEX                                      0x0724  //XIX : ILint : the color in the pallete at this index value (0-255) is considered transparent, -1 for no trasparent color
356
357// DXTC definitions
358#define IL_DXTC_FORMAT                                          0x0705
359#define IL_DXT1                                                         0x0706
360#define IL_DXT2                                                         0x0707
361#define IL_DXT3                                                         0x0708
362#define IL_DXT4                                                         0x0709
363#define IL_DXT5                                                         0x070A
364#define IL_DXT_NO_COMP                                          0x070B
365#define IL_KEEP_DXTC_DATA                                       0x070C
366#define IL_DXTC_DATA_FORMAT                                     0x070D
367
368
369// Cube map definitions
370#define IL_CUBEMAP_POSITIVEX                            0x00000400
371#define IL_CUBEMAP_NEGATIVEX                            0x00000800
372#define IL_CUBEMAP_POSITIVEY                            0x00001000
373#define IL_CUBEMAP_NEGATIVEY                            0x00002000
374#define IL_CUBEMAP_POSITIVEZ                            0x00004000
375#define IL_CUBEMAP_NEGATIVEZ                            0x00008000
376
377
378// Values
379#define IL_VERSION_NUM                                          0x0DE2
380#define IL_IMAGE_WIDTH                                          0x0DE4
381#define IL_IMAGE_HEIGHT                                         0x0DE5
382#define IL_IMAGE_DEPTH                                          0x0DE6
383#define IL_IMAGE_SIZE_OF_DATA                           0x0DE7
384#define IL_IMAGE_BPP                                            0x0DE8
385#define IL_IMAGE_BYTES_PER_PIXEL                        0x0DE8
386#define IL_IMAGE_BITS_PER_PIXEL                         0x0DE9
387#define IL_IMAGE_FORMAT                                         0x0DEA
388#define IL_IMAGE_TYPE                                           0x0DEB
389#define IL_PALETTE_TYPE                                         0x0DEC
390#define IL_PALETTE_SIZE                                         0x0DED
391#define IL_PALETTE_BPP                                          0x0DEE
392#define IL_PALETTE_NUM_COLS                                     0x0DEF
393#define IL_PALETTE_BASE_TYPE                            0x0DF0
394#define IL_NUM_IMAGES                                           0x0DF1
395#define IL_NUM_MIPMAPS                                          0x0DF2
396#define IL_NUM_LAYERS                                           0x0DF3
397#define IL_ACTIVE_IMAGE                                         0x0DF4
398#define IL_ACTIVE_MIPMAP                                        0x0DF5
399#define IL_ACTIVE_LAYER                                         0x0DF6
400#define IL_CUR_IMAGE                                            0x0DF7
401#define IL_IMAGE_DURATION                                       0x0DF8
402#define IL_IMAGE_PLANESIZE                                      0x0DF9
403#define IL_IMAGE_BPC                                            0x0DFA
404#define IL_IMAGE_OFFX                                           0x0DFB
405#define IL_IMAGE_OFFY                                           0x0DFC
406#define IL_IMAGE_CUBEFLAGS                                      0x0DFD
407#define IL_IMAGE_ORIGIN                                         0x0DFE
408
409
410//
411// Section shamelessly modified from the glut header.
412//
413
414// This is from Win32's <windef.h>
415#if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__)
416        #define ILAPIENTRY __stdcall
417        #define IL_PACKSTRUCT
418//#elif defined(linux) || defined(MACOSX) || defined(__CYGWIN__) //fix bug 840364
419#elif defined( __GNUC__ )
420  // this should work for any of the above commented platforms
421  // plus any platform using GCC
422        #define ILAPIENTRY
423        #define IL_PACKSTRUCT __attribute__ ((packed))
424#else
425        #define ILAPIENTRY
426        #define IL_PACKSTRUCT
427#endif
428
429// This is from Win32's <wingdi.h> and <winnt.h>
430#if defined(__LCC__)
431        #define ILAPI __stdcall
432#elif defined(_WIN32) //changed 20031221 to fix bug 840421
433        #ifdef IL_STATIC_LIB
434                #define ILAPI
435        #else
436                #ifdef _IL_BUILD_LIBRARY
437                        #define ILAPI __declspec(dllexport)
438                #else
439                        #define ILAPI __declspec(dllimport)
440                #endif
441        #endif
442#elif __APPLE__
443        #define ILAPI extern
444#else
445        #define ILAPI
446#endif
447
448
449#define IL_SEEK_SET     0
450#define IL_SEEK_CUR     1
451#define IL_SEEK_END     2
452#define IL_EOF          -1
453
454
455// Callback functions for file reading
456typedef void* ILHANDLE;
457typedef ILvoid          (ILAPIENTRY *fCloseRProc)(ILHANDLE);
458typedef ILboolean       (ILAPIENTRY *fEofProc)   (ILHANDLE);
459typedef ILint           (ILAPIENTRY *fGetcProc)  (ILHANDLE);
460typedef ILHANDLE        (ILAPIENTRY *fOpenRProc) (const ILstring);
461typedef ILint           (ILAPIENTRY *fReadProc)  (void*, ILuint, ILuint, ILHANDLE);
462typedef ILint           (ILAPIENTRY *fSeekRProc) (ILHANDLE, ILint, ILint);
463typedef ILint           (ILAPIENTRY *fTellRProc) (ILHANDLE);
464
465// Callback functions for file writing
466typedef ILvoid          (ILAPIENTRY *fCloseWProc)(ILHANDLE);
467typedef ILHANDLE        (ILAPIENTRY *fOpenWProc) (const ILstring);
468typedef ILint           (ILAPIENTRY *fPutcProc)  (ILubyte, ILHANDLE);
469typedef ILint           (ILAPIENTRY *fSeekWProc) (ILHANDLE, ILint, ILint);
470typedef ILint           (ILAPIENTRY *fTellWProc) (ILHANDLE);
471typedef ILint           (ILAPIENTRY *fWriteProc) (const void*, ILuint, ILuint, ILHANDLE);
472
473// Callback functions for allocation and deallocation
474typedef ILvoid*         (ILAPIENTRY *mAlloc)(ILuint);
475typedef ILvoid          (ILAPIENTRY *mFree) (ILvoid*);
476
477// Registered format procedures
478typedef ILenum          (ILAPIENTRY *IL_LOADPROC)(const ILstring);
479typedef ILenum          (ILAPIENTRY *IL_SAVEPROC)(const ILstring);
480
481
482// ImageLib Functions
483ILAPI ILboolean         ILAPIENTRY ilActiveImage(ILuint Number);
484ILAPI ILboolean         ILAPIENTRY ilActiveLayer(ILuint Number);
485ILAPI ILboolean         ILAPIENTRY ilActiveMipmap(ILuint Number);
486ILAPI ILboolean         ILAPIENTRY ilApplyPal(const ILstring FileName);
487ILAPI ILboolean         ILAPIENTRY ilApplyProfile(const ILstring InProfile, const ILstring OutProfile);
488ILAPI ILvoid            ILAPIENTRY ilBindImage(ILuint Image);
489ILAPI ILboolean         ILAPIENTRY ilBlit(ILuint Source, ILint DestX, ILint DestY, ILint DestZ, ILuint SrcX, ILuint SrcY, ILuint SrcZ, ILuint Width, ILuint Height, ILuint Depth);
490ILAPI ILvoid            ILAPIENTRY ilClearColour(ILclampf Red, ILclampf Green, ILclampf Blue, ILclampf Alpha);
491ILAPI ILboolean         ILAPIENTRY ilClearImage(ILvoid);
492ILAPI ILuint            ILAPIENTRY ilCloneCurImage(ILvoid);
493ILAPI ILboolean         ILAPIENTRY ilCompressFunc(ILenum Mode);
494ILAPI ILboolean         ILAPIENTRY ilConvertImage(ILenum DestFormat, ILenum DestType);
495ILAPI ILboolean         ILAPIENTRY ilConvertPal(ILenum DestFormat);
496ILAPI ILboolean         ILAPIENTRY ilCopyImage(ILuint Src);
497ILAPI ILuint            ILAPIENTRY ilCopyPixels(ILuint XOff, ILuint YOff, ILuint ZOff, ILuint Width, ILuint Height, ILuint Depth, ILenum Format, ILenum Type, ILvoid *Data);
498ILAPI ILuint            ILAPIENTRY ilCreateSubImage(ILenum Type, ILuint Num);
499ILAPI ILboolean         ILAPIENTRY ilDefaultImage(ILvoid);
500ILAPI ILvoid            ILAPIENTRY ilDeleteImages(ILsizei Num, const ILuint *Images);
501ILAPI ILboolean         ILAPIENTRY ilDisable(ILenum Mode);
502ILAPI ILboolean         ILAPIENTRY ilEnable(ILenum Mode);
503ILAPI ILboolean         ILAPIENTRY ilFormatFunc(ILenum Mode);
504ILAPI ILvoid            ILAPIENTRY ilGenImages(ILsizei Num, ILuint *Images);
505ILAPI ILubyte*          ILAPIENTRY ilGetAlpha(ILenum Type);
506ILAPI ILvoid            ILAPIENTRY ilModAlpha( ILint AlphaValue );
507ILAPI ILvoid            ILAPIENTRY ilSetAlpha( ILuint AlphaValue );
508ILAPI ILboolean         ILAPIENTRY ilGetBoolean(ILenum Mode);
509ILAPI ILvoid            ILAPIENTRY ilGetBooleanv(ILenum Mode, ILboolean *Param);
510ILAPI ILubyte*          ILAPIENTRY ilGetData(ILvoid);
511ILAPI ILuint            ILAPIENTRY ilGetDXTCData(ILvoid *Buffer, ILuint BufferSize, ILenum DXTCFormat);
512ILAPI ILenum            ILAPIENTRY ilGetError(ILvoid);
513ILAPI ILint             ILAPIENTRY ilGetInteger(ILenum Mode);
514ILAPI ILvoid            ILAPIENTRY ilGetIntegerv(ILenum Mode, ILint *Param);
515ILAPI ILuint            ILAPIENTRY ilGetLumpPos(ILvoid);
516ILAPI ILubyte*          ILAPIENTRY ilGetPalette(ILvoid);
517ILAPI const ILstring    ILAPIENTRY ilGetString(ILenum StringName);
518ILAPI ILvoid            ILAPIENTRY ilHint(ILenum Target, ILenum Mode);
519ILAPI ILvoid            ILAPIENTRY ilInit(ILvoid);
520ILAPI ILboolean         ILAPIENTRY ilIsDisabled(ILenum Mode);
521ILAPI ILboolean         ILAPIENTRY ilIsEnabled(ILenum Mode);
522ILAPI ILboolean         ILAPIENTRY ilIsImage(ILuint Image);
523ILAPI ILboolean         ILAPIENTRY ilIsValid(ILenum Type, const ILstring FileName);
524ILAPI ILboolean         ILAPIENTRY ilIsValidF(ILenum Type, ILHANDLE File);
525ILAPI ILboolean         ILAPIENTRY ilIsValidL(ILenum Type, ILvoid *Lump, ILuint Size);
526ILAPI ILvoid            ILAPIENTRY ilKeyColour(ILclampf Red, ILclampf Green, ILclampf Blue, ILclampf Alpha);
527ILAPI ILboolean         ILAPIENTRY ilLoad(ILenum Type, const ILstring FileName);
528ILAPI ILboolean         ILAPIENTRY ilLoadF(ILenum Type, ILHANDLE File);
529ILAPI ILboolean         ILAPIENTRY ilLoadImage(const ILstring FileName);
530ILAPI ILboolean         ILAPIENTRY ilLoadL(ILenum Type, ILvoid *Lump, ILuint Size);
531ILAPI ILboolean         ILAPIENTRY ilLoadPal(const ILstring FileName);
532ILAPI ILboolean         ILAPIENTRY ilOriginFunc(ILenum Mode);
533ILAPI ILboolean         ILAPIENTRY ilOverlayImage(ILuint Source, ILint XCoord, ILint YCoord, ILint ZCoord);
534ILAPI ILvoid            ILAPIENTRY ilPopAttrib(ILvoid);
535ILAPI ILvoid            ILAPIENTRY ilPushAttrib(ILuint Bits);
536ILAPI ILvoid            ILAPIENTRY ilRegisterFormat(ILenum Format);
537ILAPI ILboolean         ILAPIENTRY ilRegisterLoad(const ILstring Ext, IL_LOADPROC Load);
538ILAPI ILboolean         ILAPIENTRY ilRegisterMipNum(ILuint Num);
539ILAPI ILboolean         ILAPIENTRY ilRegisterNumImages(ILuint Num);
540ILAPI ILvoid            ILAPIENTRY ilRegisterOrigin(ILenum Origin);
541ILAPI ILvoid            ILAPIENTRY ilRegisterPal(ILvoid *Pal, ILuint Size, ILenum Type);
542ILAPI ILboolean         ILAPIENTRY ilRegisterSave(const ILstring Ext, IL_SAVEPROC Save);
543ILAPI ILvoid            ILAPIENTRY ilRegisterType(ILenum Type);
544ILAPI ILboolean         ILAPIENTRY ilRemoveLoad(const ILstring Ext);
545ILAPI ILboolean         ILAPIENTRY ilRemoveSave(const ILstring Ext);
546ILAPI ILvoid            ILAPIENTRY ilResetMemory(ILvoid);
547ILAPI ILvoid            ILAPIENTRY ilResetRead(ILvoid);
548ILAPI ILvoid            ILAPIENTRY ilResetWrite(ILvoid);
549ILAPI ILboolean         ILAPIENTRY ilSave(ILenum Type, const ILstring FileName);
550ILAPI ILuint            ILAPIENTRY ilSaveF(ILenum Type, ILHANDLE File);
551ILAPI ILboolean         ILAPIENTRY ilSaveImage(const ILstring FileName);
552ILAPI ILuint            ILAPIENTRY ilSaveL(ILenum Type, ILvoid *Lump, ILuint Size);
553ILAPI ILboolean         ILAPIENTRY ilSavePal(const ILstring FileName);
554ILAPI ILboolean         ILAPIENTRY ilSetData(ILvoid *Data);
555ILAPI ILboolean         ILAPIENTRY ilSetDuration(ILuint Duration);
556ILAPI ILvoid            ILAPIENTRY ilSetInteger(ILenum Mode, ILint Param);
557ILAPI ILvoid            ILAPIENTRY ilSetMemory(mAlloc, mFree);
558ILAPI ILvoid            ILAPIENTRY ilSetPixels(ILint XOff, ILint YOff, ILint ZOff, ILuint Width, ILuint Height, ILuint Depth, ILenum Format, ILenum Type, ILvoid *Data);
559ILAPI ILvoid            ILAPIENTRY ilSetRead(fOpenRProc, fCloseRProc, fEofProc, fGetcProc, fReadProc, fSeekRProc, fTellRProc);
560ILAPI ILvoid            ILAPIENTRY ilSetString(ILenum Mode, const char *String);
561ILAPI ILvoid            ILAPIENTRY ilSetWrite(fOpenWProc, fCloseWProc, fPutcProc, fSeekWProc, fTellWProc, fWriteProc);
562ILAPI ILvoid            ILAPIENTRY ilShutDown(ILvoid);
563ILAPI ILboolean         ILAPIENTRY ilTexImage(ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILenum Format, ILenum Type, ILvoid *Data);
564ILAPI ILboolean         ILAPIENTRY ilTypeFunc(ILenum Mode);
565
566ILAPI ILboolean         ILAPIENTRY ilLoadData(const ILstring FileName, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp);
567ILAPI ILboolean         ILAPIENTRY ilLoadDataF(ILHANDLE File, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp);
568ILAPI ILboolean         ILAPIENTRY ilLoadDataL(ILvoid *Lump, ILuint Size, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp);
569ILAPI ILboolean         ILAPIENTRY ilSaveData(const ILstring FileName);
570
571ILAPI ILboolean         ILAPIENTRY ilLoadFromJpegStruct(ILvoid* JpegDecompressorPtr);
572ILAPI ILboolean         ILAPIENTRY ilSaveFromJpegStruct(ILvoid* JpegCompressorPtr);
573
574// For all those weirdos that spell "colour" without the 'u'.
575#define ilClearColor    ilClearColour
576#define ilKeyColor              ilKeyColour
577
578
579#ifdef __cplusplus
580}
581#endif
582
583#endif // __IL_H__
584#endif // __il_h__
585
586#ifdef ALTIVEC
587    #define imemclear(x,y) vec_memclear(x,y);
588#else
589    #define imemclear(x,y) memset(x,0,y);
590#endif
591   
592#ifdef ALTIVEC
593    void vec_memclear( ILvoid *, ILuint );
594#endif
Note: See TracBrowser for help on using the repository browser.