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.

43 lines
1.5 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1996 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: commdrv.h
  6. * Content: Common driver structures
  7. *
  8. ***************************************************************************/
  9. #ifndef _COMMDRV_H_
  10. #define _COMMDRV_H_
  11. #include "haldrv.hpp"
  12. extern int GenGetExtraVerticesNumber( LPDIRECT3DDEVICEI lpDevI );
  13. extern LPD3DTLVERTEX GenGetExtraVerticesPointer( LPDIRECT3DDEVICEI lpDevI );
  14. extern HRESULT DrawPrim(LPDIRECT3DDEVICEI);
  15. extern HRESULT DrawIndexPrim(LPDIRECT3DDEVICEI);
  16. extern HRESULT DrawPrimLegacy(LPDIRECT3DDEVICEI);
  17. extern HRESULT DrawIndexPrimLegacy(LPDIRECT3DDEVICEI);
  18. extern HRESULT DrawPrimCB(LPDIRECT3DDEVICEI);
  19. extern HRESULT DrawIndexPrimCB(LPDIRECT3DDEVICEI);
  20. //---------------------------------------------------------------------
  21. // This class builds a DDRAWSURFACE around memory bits
  22. //
  23. class CDDSurfaceFromMem
  24. {
  25. public:
  26. CDDSurfaceFromMem(LPVOID lpvMemory)
  27. {
  28. gblTL.fpVidMem = (ULONG_PTR)lpvMemory;
  29. lclTL.lpGbl = &gblTL;
  30. exeTL.lpLcl = &lclTL;
  31. }
  32. ~CDDSurfaceFromMem() {};
  33. LPDIRECTDRAWSURFACE GetSurface() {return (LPDIRECTDRAWSURFACE) &exeTL;}
  34. void SetBits(LPVOID lpvMemory) {gblTL.fpVidMem = (ULONG_PTR)lpvMemory;}
  35. protected:
  36. DDRAWI_DDRAWSURFACE_INT exeTL;
  37. DDRAWI_DDRAWSURFACE_LCL lclTL;
  38. DDRAWI_DDRAWSURFACE_GBL gblTL;
  39. };
  40. #endif /* _COMMDRV_H_ */