DX8升级DX9
升級過程中遇到兩個問題要注意一下,
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的第二個參數放到DrawIndexedPrimitive的第二個參數。
總結
- 上一篇: Gtalk Jingle (1) - T
- 下一篇: 没有理由拒绝的四款实用软件,让你办公无所