1 //-----------------------------------------------------------------------------
2 //
3 // ImageLib Utility Toolkit Sources
4 // Copyright (C) 2000-2002 by Denton Woods
5 // Last modified: 02/07/2002 <--Y2K Compliant! =]
6 //
7 // Filename: src-ILUT/include/ilut_internal.h
8 //
9 // Description: Internal stuff for ILUT
10 //
11 //-----------------------------------------------------------------------------
12 
13 
14 #ifndef INTERNAL_H
15 #define INTERNAL_H
16 
17 #define _IL_BUILD_LIBRARY
18 #define _ILU_BUILD_LIBRARY
19 #define _ILUT_BUILD_LIBRARY
20 
21 //#define	WIN32_LEAN_AND_MEAN
22 
23 /*#if defined(_WIN32) && !defined(HAVE_CONFIG_H)
24 #define HAVE_CONFIG_H
25 #endif*/
26 
27 #ifdef HAVE_CONFIG_H //if we use autotools, we have HAVE_CONFIG_H defined and we have to look for it like that
28 #include <config.h>
29 #else // if we don't use autotools, we have to point to (possibly different) config.h than in the opposite case
30 #include <IL/config.h>
31 #endif
32 
33 #include <string.h>
34 
35 #ifdef _WIN32
36 #ifdef _MSC_VER
37 		#if _MSC_VER > 1000
38 			#pragma warning(disable: 4996)	// "The POSIX name for this item is deprecated." AND "This function or variable may be unsafe."
39 		#endif // _MSC_VER > 1000
40 	#endif
41 #endif
42 
43 /*
44 #ifdef _MSC_VER
45 	#if _MSC_VER > 1000
46 		pragma once
47 		pragma intrinsic(memcpy)
48 		pragma intrinsic(memset)
49 	#endif // _MSC_VER > 1000
50 #endif
51 */
52 
53 #include <IL/ilut.h>
54 #include <IL/devil_internal_exports.h>
55 
56 #include <stdlib.h>
57 
58 extern ILimage *ilutCurImage;
59 
60 void	ilutDefaultStates(void);
61 
62 
63 #ifdef _UNICODE
64 	#define IL_TEXT(s) L##s
65 #else
66 	#define IL_TEXT(s) (s)
67 #endif
68 
69 
70 // ImageLib Utility Toolkit's OpenGL Functions
71 #ifdef ILUT_USE_OPENGL
72 	ILboolean ilutGLInit();
73 #endif
74 
75 // ImageLib Utility Toolkit's Win32 Functions
76 #ifdef ILUT_USE_WIN32
77 	ILboolean ilutWin32Init();
78 #endif
79 
80 // ImageLib Utility Toolkit's Win32 Functions
81 #ifdef ILUT_USE_DIRECTX8
82 	ILboolean ilutD3D8Init();
83 #endif
84 
85 #ifdef ILUT_USE_DIRECTX9
86 	ILboolean ilutD3D9Init();
87 #endif
88 
89 #ifdef ILUT_USE_DIRECTX10
90 	ILboolean ilutD3D10Init();
91 #endif
92 
93 #define CUBEMAP_SIDES 6
94 #ifndef SAFE_RELEASE
95 #define SAFE_RELEASE(p) {if((p)!=NULL){(p)->lpVtbl->Release(p);(p)=NULL;}}
96 #endif
97 
98 
99 #endif//INTERNAL_H
100