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.

38 lines
929 B

  1. //-----------------------------------------------------------------------------
  2. //
  3. // This file contains the general span parsing code.
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997.
  6. //
  7. //-----------------------------------------------------------------------------
  8. #include "pch.cpp"
  9. #pragma hdrstop
  10. //-----------------------------------------------------------------------------
  11. //
  12. // CMMX_RenderSpansAny
  13. //
  14. // All mode general span routine.
  15. //
  16. //-----------------------------------------------------------------------------
  17. HRESULT CMMX_RenderSpansAny(PD3DI_RASTCTX pCtx)
  18. {
  19. PD3DI_RASTPRIM pP = pCtx->pPrim;
  20. while (pP)
  21. {
  22. UINT16 uSpans = pP->uSpans;
  23. PD3DI_RASTSPAN pS = (PD3DI_RASTSPAN)(pP + 1);
  24. while (uSpans-- > 0)
  25. {
  26. pCtx->pfnBegin(pCtx, pP, pS);
  27. pS++;
  28. }
  29. pP = pP->pNext;
  30. }
  31. return S_OK;
  32. }