Click here to Skip to main content
15,898,134 members

Comments by Aweiwei_ (Top 4 by date)

Aweiwei_ 12-Feb-13 8:13am View    
int err=dev->DrawIndexedPrimitive(D3DPT_TRIANGLELIST,0,0,NumVertices,0,NumFaces);

err come out to be -2005530516 (0x8876086c)

Aweiwei_ 11-Feb-13 0:09am View    
It works well.No error was reported.
Aweiwei_ 11-Feb-13 0:07am View    
from msdn:

Remarks

The subset that is specified by AttribId will be rendered by the IDirect3DDevice9::DrawIndexedPrimitive method, using the D3DPT_TRIANGLELIST primitive type, so an index buffer must be properly initialized.

it seems that the DrawSubset call DrawIndexedPrimitive internal
Aweiwei_ 8-Feb-13 4:09am View    
well,the concept & struct of c# is from java.And the concept & struct of a language is its soul.Maybe the use of c# is nearly as the same of vb,but find a customize class in vb then you can prove your opinion.