Advertisement

Can I render them without loop?

Started by April 30, 2001 06:49 AM
-1 comments, last by FancyZero 23 years, 9 months ago
When a vertexbuffer contain lot of triangle list ,I can render them by one operation eg. DrawPrimitive( D3DPT_TRIANGLELIST, 0, vertexs/3 ); but when I got a vertexbuffer contain lot of triangle fan(my fan have 5 vertex first is center, other 4 is the coner) I have to render them like this: int i=1; i=(i<<(ilod*2))*6-6; for (;i>0;i-=6) { m_pPainter->m_p3DDevice->DrawPrimitive( D3DPT_TRIANGLEFAN, i, 5 ); } I have to render them in a loop. Can any one tell me how to render them whitout loop. Thanx Edited by - Fancyzero on April 30, 2001 7:51:06 AM

This topic is closed to new replies.

Advertisement