ilut_internal.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. #ifndef INTERNAL_H
  13. #define INTERNAL_H
  14. #define _IL_BUILD_LIBRARY
  15. #define _ILU_BUILD_LIBRARY
  16. #define _ILUT_BUILD_LIBRARY
  17. //#define WIN32_LEAN_AND_MEAN
  18. /*#if defined(_WIN32) && !defined(HAVE_CONFIG_H)
  19. #define HAVE_CONFIG_H
  20. #endif*/
  21. #ifdef HAVE_CONFIG_H //if we use autotools, we have HAVE_CONFIG_H defined and we have to look for it like that
  22. #include <config.h>
  23. #else // if we don't use autotools, we have to point to (possibly different) config.h than in the opposite case
  24. #include <IL/config.h>
  25. #endif
  26. #include <string.h>
  27. #ifdef _WIN32
  28. #ifdef _MSC_VER
  29. #if _MSC_VER > 1000
  30. #pragma warning(disable: 4996) // "The POSIX name for this item is deprecated." AND "This function or variable may be unsafe."
  31. #endif // _MSC_VER > 1000
  32. #endif
  33. #endif
  34. /*
  35. #ifdef _MSC_VER
  36. #if _MSC_VER > 1000
  37. pragma once
  38. pragma intrinsic(memcpy)
  39. pragma intrinsic(memset)
  40. #endif // _MSC_VER > 1000
  41. #endif
  42. */
  43. #include <IL/ilut.h>
  44. #include <IL/devil_internal_exports.h>
  45. #include <stdlib.h>
  46. extern ILimage *ilutCurImage;
  47. void ilutDefaultStates(void);
  48. #ifdef _UNICODE
  49. #define IL_TEXT(s) L##s
  50. #else
  51. #define IL_TEXT(s) (s)
  52. #endif
  53. // ImageLib Utility Toolkit's OpenGL Functions
  54. #ifdef ILUT_USE_OPENGL
  55. ILboolean ilutGLInit();
  56. #endif
  57. // ImageLib Utility Toolkit's Win32 Functions
  58. #ifdef ILUT_USE_WIN32
  59. ILboolean ilutWin32Init();
  60. #endif
  61. // ImageLib Utility Toolkit's Win32 Functions
  62. #ifdef ILUT_USE_DIRECTX8
  63. ILboolean ilutD3D8Init();
  64. #endif
  65. #ifdef ILUT_USE_DIRECTX9
  66. ILboolean ilutD3D9Init();
  67. #endif
  68. #ifdef ILUT_USE_DIRECTX10
  69. ILboolean ilutD3D10Init();
  70. #endif
  71. #define CUBEMAP_SIDES 6
  72. #ifndef SAFE_RELEASE
  73. #define SAFE_RELEASE(p) {if((p)!=NULL){(p)->lpVtbl->Release(p);(p)=NULL;}}
  74. #endif
  75. #endif//INTERNAL_H