D3DX10.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: d3dx10.h
  6. // Content: D3DX10 utility library
  7. //
  8. //////////////////////////////////////////////////////////////////////////////
  9. #ifdef __D3DX10_INTERNAL__
  10. #error Incorrect D3DX10 header used
  11. #endif
  12. #ifndef __D3DX10_H__
  13. #define __D3DX10_H__
  14. // Defines
  15. #include <limits.h>
  16. #include <float.h>
  17. #define D3DX10_DEFAULT ((UINT) -1)
  18. #define D3DX10_FROM_FILE ((UINT) -3)
  19. #define DXGI_FORMAT_FROM_FILE ((DXGI_FORMAT) -3)
  20. #ifndef D3DX10INLINE
  21. #ifdef _MSC_VER
  22. #if (_MSC_VER >= 1200)
  23. #define D3DX10INLINE __forceinline
  24. #else
  25. #define D3DX10INLINE __inline
  26. #endif
  27. #else
  28. #ifdef __cplusplus
  29. #define D3DX10INLINE inline
  30. #else
  31. #define D3DX10INLINE
  32. #endif
  33. #endif
  34. #endif
  35. // Includes
  36. #include "d3d10.h"
  37. #include "d3dx10.h"
  38. #include "d3dx10math.h"
  39. #include "d3dx10core.h"
  40. #include "d3dx10tex.h"
  41. #include "d3dx10mesh.h"
  42. #include "d3dx10async.h"
  43. // Errors
  44. #define _FACDD 0x876
  45. #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
  46. enum _D3DX10_ERR {
  47. D3DX10_ERR_CANNOT_MODIFY_INDEX_BUFFER = MAKE_DDHRESULT(2900),
  48. D3DX10_ERR_INVALID_MESH = MAKE_DDHRESULT(2901),
  49. D3DX10_ERR_CANNOT_ATTR_SORT = MAKE_DDHRESULT(2902),
  50. D3DX10_ERR_SKINNING_NOT_SUPPORTED = MAKE_DDHRESULT(2903),
  51. D3DX10_ERR_TOO_MANY_INFLUENCES = MAKE_DDHRESULT(2904),
  52. D3DX10_ERR_INVALID_DATA = MAKE_DDHRESULT(2905),
  53. D3DX10_ERR_LOADED_MESH_HAS_NO_DATA = MAKE_DDHRESULT(2906),
  54. D3DX10_ERR_DUPLICATE_NAMED_FRAGMENT = MAKE_DDHRESULT(2907),
  55. D3DX10_ERR_CANNOT_REMOVE_LAST_ITEM = MAKE_DDHRESULT(2908),
  56. };
  57. #endif //__D3DX10_H__