00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef INTERNAL_H
00015 #define INTERNAL_H
00016
00017 #define _IL_BUILD_LIBRARY
00018 #define _ILU_BUILD_LIBRARY
00019 #define _ILUT_BUILD_LIBRARY
00020
00021
00022
00023
00024
00025
00026
00027 #ifdef HAVE_CONFIG_H //if we use autotools, we have HAVE_CONFIG_H defined and we have to look for it like that
00028 #include <config.h>
00029 #else // if we don't use autotools, we have to point to (possibly different) config.h than in the opposite case
00030 #include <IL/config.h>
00031 #endif
00032
00033 #include <string.h>
00034
00035 #ifdef _WIN32
00036 #ifdef _MSC_VER
00037 #if _MSC_VER > 1000
00038 #pragma warning(disable: 4996) // "The POSIX name for this item is deprecated." AND "This function or variable may be unsafe."
00039 #endif // _MSC_VER > 1000
00040 #endif
00041 #endif
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 #include <IL/ilut.h>
00054 #include <IL/devil_internal_exports.h>
00055
00056 #include <stdlib.h>
00057
00058 extern ILimage *ilutCurImage;
00059
00060 void ilutDefaultStates(void);
00061
00062
00063 #ifdef _UNICODE
00064 #define IL_TEXT(s) L##s
00065 #else
00066 #define IL_TEXT(s) (s)
00067 #endif
00068
00069
00070
00071 #ifdef ILUT_USE_OPENGL
00072 ILboolean ilutGLInit();
00073 #endif
00074
00075
00076 #ifdef ILUT_USE_WIN32
00077 ILboolean ilutWin32Init();
00078 #endif
00079
00080
00081 #ifdef ILUT_USE_DIRECTX8
00082 ILboolean ilutD3D8Init();
00083 #endif
00084
00085 #ifdef ILUT_USE_DIRECTX9
00086 ILboolean ilutD3D9Init();
00087 #endif
00088
00089 #ifdef ILUT_USE_DIRECTX10
00090 ILboolean ilutD3D10Init();
00091 #endif
00092
00093 #define CUBEMAP_SIDES 6
00094 #ifndef SAFE_RELEASE
00095 #define SAFE_RELEASE(p) {if((p)!=NULL){(p)->lpVtbl->Release(p);(p)=NULL;}}
00096 #endif
00097
00098
00099 #endif//INTERNAL_H