d3dx9.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: d3dx9.h
  6. // Content: D3DX utility library
  7. //
  8. //////////////////////////////////////////////////////////////////////////////
  9. #ifdef __D3DX_INTERNAL__
  10. #error Incorrect D3DX header used
  11. #endif
  12. #ifndef __D3DX9_H__
  13. #define __D3DX9_H__
  14. // Defines
  15. #include <limits.h>
  16. #define D3DX_DEFAULT ((UINT) -1)
  17. #define D3DX_DEFAULT_NONPOW2 ((UINT) -2)
  18. #define D3DX_DEFAULT_FLOAT FLT_MAX
  19. #define D3DX_FROM_FILE ((UINT) -3)
  20. #define D3DFMT_FROM_FILE ((D3DFORMAT) -3)
  21. #ifndef D3DXINLINE
  22. #ifdef _MSC_VER
  23. #if (_MSC_VER >= 1200)
  24. #define D3DXINLINE __forceinline
  25. #else
  26. #define D3DXINLINE __inline
  27. #endif
  28. #else
  29. #ifdef __cplusplus
  30. #define D3DXINLINE inline
  31. #else
  32. #define D3DXINLINE
  33. #endif
  34. #endif
  35. #endif
  36. // Includes
  37. #include "d3d9.h"
  38. #include "d3dx9math.h"
  39. #include "d3dx9core.h"
  40. #include "d3dx9xof.h"
  41. #include "d3dx9mesh.h"
  42. #include "d3dx9shader.h"
  43. #include "d3dx9effect.h"
  44. #include "d3dx9tex.h"
  45. #include "d3dx9shape.h"
  46. #include "d3dx9anim.h"
  47. // Errors
  48. #define _FACDD 0x876
  49. #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
  50. enum _D3DXERR {
  51. D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900),
  52. D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901),
  53. D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902),
  54. D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903),
  55. D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904),
  56. D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905),
  57. D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906),
  58. D3DXERR_DUPLICATENAMEDFRAGMENT = MAKE_DDHRESULT(2907),
  59. D3DXERR_CANNOTREMOVELASTITEM = MAKE_DDHRESULT(2908),
  60. };
  61. #endif //__D3DX9_H__