Subversion Repositories Games.Chess Giants

Rev

Blame | Last modification | View Log | Download | RSS feed

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