#ifndef INTERNAL_H #define INTERNAL_H #include #ifdef _MSC_VER #if _MSC_VER > 1000 #pragma once #pragma intrinsic(memcpy) #pragma intrinsic(memset) //pragma comment(linker, "/NODEFAULTLIB:libc") #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #ifdef _DEBUG #define _CRTDBG_MAP_ALLOC #include #ifndef _WIN32_WCE #include #endif #endif #endif // _MSC_VER > 1000 #endif #define _IL_BUILD_LIBRARY #define _ILU_BUILD_LIBRARY // Standard headers #include #include #include #include // Local headers #define _IL_BUILD_LIBRARY #define _ILU_BUILD_LIBRARY #ifdef HAVE_CONFIG_H //if we use autotools, we have HAVE_CONFIG_H defined and we have to look for it like that #include #else // if we don't use autotools, we have to point to (possibly different) config.h than in the opposite case #include #endif #include #include // From DevIL's internal.h: #ifdef _WIN32_WCE #include #define IL_TEXT(s) ((char*)TEXT(s)) #elif _WIN32 #include #define IL_TEXT(s) TEXT(s) #else #define IL_TEXT(s) s #define TEXT(s) s #endif extern ILimage *iluCurImage; // Useful global variables extern const ILdouble IL_PI; extern const ILdouble IL_DEGCONV; #ifdef ILU_INTERNAL_C #undef NOINLINE #undef INLINE #define INLINE #endif // Internal functions ILfloat ilCos(ILfloat Angle); ILfloat ilSin(ILfloat Angle); ILint ilRound(ILfloat Num); #ifndef NOINLINE INLINE ILfloat ilCos(ILfloat Angle) { return (ILfloat)(cos(Angle * IL_DEGCONV)); } INLINE ILfloat ilSin(ILfloat Angle) { return (ILfloat)(sin(Angle * IL_DEGCONV)); } INLINE ILint ilRound(ILfloat Num) { return (ILint)(Num + 0.5); // this is truncating in away-from-0, not rounding } #endif ILuint iluScaleAdvanced(ILuint Width, ILuint Height, ILenum Filter); ILubyte *iScanFill(void); #endif//INTERNAL_H