home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the 3D Game Programming Gurus / gurus.iso / DirectX / dx9sdkcp.exe / SDK (C++) / Include / d3dx9.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-12-04  |  1.7 KB  |  72 lines

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