DX8升级DX9
升級(jí)過(guò)程中遇到兩個(gè)問(wèn)題要注意一下,
m_pD3DD->CopyRects(pSourceSurface,pSourceRectsArray,cRects,pDestinationSurface,pDestPointsArray)
改為
??for (int i = 0; i < cRects; ++i)
??{
???hr = m_pD3DD->UpdateSurface(pSourceSurface, pSourceRectsArray+i, pDestinationSurface, pDestPointsArray+i);
??}
?
其次,SetIndices的第二個(gè)參數(shù)放到DrawIndexedPrimitive的第二個(gè)參數(shù)。
總結(jié)
- 上一篇: Gtalk Jingle (1) - T
- 下一篇: 没有理由拒绝的四款实用软件,让你办公无所