Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.7 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1995,1996 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: ddd3dapi.h
  6. * Content: Interface between DirectDraw and Direct3D.
  7. *@@BEGIN_MSINTERNAL
  8. *
  9. * $Id$
  10. *
  11. * History:
  12. * Date By Reason
  13. * ==== == ======
  14. * 02/17/96 colinmc Created this file from the obsolete d3dapi.h
  15. * 03/23/96 colinmc Added process termination cleanup code
  16. * 04/17/96 colinmc Bug 17008: DirectDraw/Direct3D deadlock
  17. * 04/25/96 stevela Bug 16803: Name of Direct3D DLL changed.
  18. * 04/29/96 colinmc Bug 19954: Must query for Direct3D before texture
  19. * or device
  20. *@@END_MSINTERNAL
  21. *
  22. ***************************************************************************/
  23. #ifndef _DDD3DAPI_H_
  24. #define _DDD3DAPI_H_
  25. // Flags for D3DDEVICEDESC dwDeviceZBufferBitDepth
  26. // copied from direct3d\rast\d3dif\d3dif.hpp, see note there for explanation
  27. #define D3DSWRASTERIZER_ZBUFFERBITDEPTHFLAGS (DDBD_16)
  28. /*
  29. * File name of the Direct3D DLL.
  30. */
  31. #define D3D_DLLNAME "D3DIM.DLL"
  32. #define D3DDX7_DLLNAME "D3DIM700.DLL"
  33. /*
  34. * Entry points exported by the Direct3D DLL.
  35. */
  36. #define D3DCREATE_PROCNAME "Direct3DCreate"
  37. #define D3DCREATEDEVICE_PROCNAME "Direct3DCreateDevice"
  38. #define D3DCREATETEXTURE_PROCNAME "Direct3DCreateTexture"
  39. #define D3DHALCLEANUP_PROCNAME "Direct3D_HALCleanUp"
  40. #ifdef USE_D3D_CSECT
  41. typedef HRESULT (WINAPI * D3DCreateProc)(LPUNKNOWN* lplpD3D,
  42. IUnknown* pUnkOuter);
  43. #else /* USE_D3D_CSECT */
  44. typedef HRESULT (WINAPI * D3DCreateProc)(LPCRITICAL_SECTION lpDDCSect,
  45. LPUNKNOWN* lplpD3D,
  46. IUnknown* pUnkOuter);
  47. #endif /* USE_D3D_CSECT */
  48. typedef HRESULT (WINAPI * D3DCreateTextProc)(REFCLSID riid,
  49. LPDIRECTDRAWSURFACE lpDDS,
  50. LPUNKNOWN* lplpD3DText,
  51. IUnknown* pUnkOuter);
  52. typedef HRESULT (WINAPI * D3DCreateDeviceProc)(REFCLSID riid,
  53. LPUNKNOWN lpDirect3D,
  54. LPDIRECTDRAWSURFACE lpDDS,
  55. LPUNKNOWN* lplpD3DDevice,
  56. IUnknown* pUnkOuter,
  57. DWORD dwVersion);
  58. typedef DWORD (WINAPI * D3DGetSWRastPixFmtsProc)(DDPIXELFORMAT **ppDDPF);
  59. typedef HRESULT (WINAPI * D3DHALCleanUpProc)(LPD3DHAL_CALLBACKS lpHALTable, DWORD dwPID);
  60. #endif /* _DDD3DAPI_H_ */