| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- //-----------------------------------------------------------------------------
- //
- // ImageLib Utility Toolkit Sources
- // Copyright (C) 2000-2002 by Denton Woods
- // Last modified: 02/07/2002 <--Y2K Compliant! =]
- //
- // Filename: src-ILUT/include/ilut_internal.h
- //
- // Description: Internal stuff for ILUT
- //
- //-----------------------------------------------------------------------------
- #ifndef INTERNAL_H
- #define INTERNAL_H
- #define _IL_BUILD_LIBRARY
- #define _ILU_BUILD_LIBRARY
- #define _ILUT_BUILD_LIBRARY
- //#define WIN32_LEAN_AND_MEAN
- /*#if defined(_WIN32) && !defined(HAVE_CONFIG_H)
- #define HAVE_CONFIG_H
- #endif*/
- #ifdef HAVE_CONFIG_H //if we use autotools, we have HAVE_CONFIG_H defined and we have to look for it like that
- #include <config.h>
- #else // if we don't use autotools, we have to point to (possibly different) config.h than in the opposite case
- #include <IL/config.h>
- #endif
- #include <string.h>
- #ifdef _WIN32
- #ifdef _MSC_VER
- #if _MSC_VER > 1000
- #pragma warning(disable: 4996) // "The POSIX name for this item is deprecated." AND "This function or variable may be unsafe."
- #endif // _MSC_VER > 1000
- #endif
- #endif
- /*
- #ifdef _MSC_VER
- #if _MSC_VER > 1000
- pragma once
- pragma intrinsic(memcpy)
- pragma intrinsic(memset)
- #endif // _MSC_VER > 1000
- #endif
- */
- #include <IL/ilut.h>
- #include <IL/devil_internal_exports.h>
- #include <stdlib.h>
- extern ILimage *ilutCurImage;
- void ilutDefaultStates(void);
- #ifdef _UNICODE
- #define IL_TEXT(s) L##s
- #else
- #define IL_TEXT(s) (s)
- #endif
- // ImageLib Utility Toolkit's OpenGL Functions
- #ifdef ILUT_USE_OPENGL
- ILboolean ilutGLInit();
- #endif
- // ImageLib Utility Toolkit's Win32 Functions
- #ifdef ILUT_USE_WIN32
- ILboolean ilutWin32Init();
- #endif
- // ImageLib Utility Toolkit's Win32 Functions
- #ifdef ILUT_USE_DIRECTX8
- ILboolean ilutD3D8Init();
- #endif
- #ifdef ILUT_USE_DIRECTX9
- ILboolean ilutD3D9Init();
- #endif
- #ifdef ILUT_USE_DIRECTX10
- ILboolean ilutD3D10Init();
- #endif
- #define CUBEMAP_SIDES 6
- #ifndef SAFE_RELEASE
- #define SAFE_RELEASE(p) {if((p)!=NULL){(p)->lpVtbl->Release(p);(p)=NULL;}}
- #endif
- #endif//INTERNAL_H
|