- Main Page
- Data Structures
- Files

- File List
- Globals

# E:/DevIL/src-ILUT/include/ilut_internal.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Utility Toolkit Sources
    00004 // Copyright (C) 2000-2002 by Denton Woods
    00005 // Last modified: 02/07/2002 <--Y2K Compliant! =]
    00006 //
    00007 // Filename: src-ILUT/include/ilut_internal.h
    00008 //
    00009 // Description: Internal stuff for ILUT
    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 //#define       WIN32_LEAN_AND_MEAN
    00022
    00023 /*#if defined(_WIN32) && !defined(HAVE_CONFIG_H)
    00024 #define HAVE_CONFIG_H
    00025 #endif*/
    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 #ifdef _MSC_VER
    00045         #if _MSC_VER > 1000
    00046                 pragma once
    00047                 pragma intrinsic(memcpy)
    00048                 pragma intrinsic(memset)
    00049         #endif // _MSC_VER > 1000
    00050 #endif
    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 // ImageLib Utility Toolkit's OpenGL Functions
    00071 #ifdef ILUT_USE_OPENGL
    00072         ILboolean ilutGLInit();
    00073 #endif
    00074
    00075 // ImageLib Utility Toolkit's Win32 Functions
    00076 #ifdef ILUT_USE_WIN32
    00077         ILboolean ilutWin32Init();
    00078 #endif
    00079
    00080 // ImageLib Utility Toolkit's Win32 Functions
    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