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
38 lines
929 B
//-----------------------------------------------------------------------------
|
|
//
|
|
// This file contains the general span parsing code.
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1997.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#include "pch.cpp"
|
|
#pragma hdrstop
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
// CMMX_RenderSpansAny
|
|
//
|
|
// All mode general span routine.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
HRESULT CMMX_RenderSpansAny(PD3DI_RASTCTX pCtx)
|
|
{
|
|
PD3DI_RASTPRIM pP = pCtx->pPrim;
|
|
|
|
while (pP)
|
|
{
|
|
UINT16 uSpans = pP->uSpans;
|
|
PD3DI_RASTSPAN pS = (PD3DI_RASTSPAN)(pP + 1);
|
|
|
|
while (uSpans-- > 0)
|
|
{
|
|
pCtx->pfnBegin(pCtx, pP, pS);
|
|
|
|
pS++;
|
|
}
|
|
pP = pP->pNext;
|
|
}
|
|
return S_OK;
|
|
}
|