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.

48 lines
1.6 KiB

  1. /*============================ ==============================================;
  2. *
  3. * Copyright (C) 1997 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: clipper.h
  6. * Content: Clipper definitions
  7. *
  8. ***************************************************************************/
  9. #ifndef _CLIPPER_H_
  10. #define _CLIPPER_H_
  11. //---------------------------------------------------------------------
  12. // Bit numbers for each clip flag
  13. //
  14. #define D3DCLIP_LEFTBIT 1
  15. #define D3DCLIP_RIGHTBIT 2
  16. #define D3DCLIP_TOPBIT 3
  17. #define D3DCLIP_BOTTOMBIT 4
  18. #define D3DCLIP_FRONTBIT 5
  19. #define D3DCLIP_BACKBIT 6
  20. #define D3DCLIPGB_LEFTBIT 13
  21. #define D3DCLIPGB_RIGHTBIT 14
  22. #define D3DCLIPGB_TOPBIT 15
  23. #define D3DCLIPGB_BOTTOMBIT 16
  24. const DWORD __DEBUG_MULTILOOP = 1; // Disable multi-loop geometry pipeline
  25. const DWORD __DEBUG_ONEPASS = 2; // Disable clip and light in one pass
  26. const DWORD __DEBUG_MODELSPACE = 4; // Disable lighting in model space
  27. //---------------------------------------------------------------------
  28. // Make clip vertex from D3D vertex
  29. //
  30. // device - DIRECT3DDEVICEI *
  31. // pp1 - clipVertex
  32. // p1 - TL vertex
  33. //
  34. void MAKE_CLIP_VERTEX_FVF(D3DFE_PROCESSVERTICES *pv, ClipVertex& pp1, BYTE* p1,
  35. DWORD clipFlag, BOOL transformed);
  36. //---------------------------------------------------------------------
  37. // Make TL vertex from clip vertex
  38. //
  39. // device - DIRECT3DDEVICEI *
  40. // in - clipVertex
  41. // out - TL vertex
  42. //
  43. void MAKE_TL_VERTEX_FVF(D3DFE_PROCESSVERTICES *pv, BYTE* out, ClipVertex* in);
  44. #endif // _CLIPPER_H_