D3D7 -> WineD3D, 2nd attempt
titan.costa at wanadoo.fr
Fri Oct 14 10:52:37 CDT 2005
Stefan Dösinger wrote:
>I have come across a D3D7 call where I need some help with:
>IDirect3DDevice::DrawIndexedPrimitiveVB. The prototype is
> D3DPRIMITIVETYPE d3dptPrimitiveType,
> LPDIRECT3DVERTEXBUFFER7 lpD3DVertexBuf,
> DWORD dwStartVertex,
> DWORD dwNumVertices,
> LPWORD lpwIndices,
> DWORD dwIndexCount,
> DWORD dwFlags)
>I can't find any usable information about it on MSDN, and there's no
>equivalent in other D3D versions and WineD3D.
>Is there an easy translation to IWineD3DDevice::DrawIndexedPrimitive
>orIWineD3DDevice::DrawIndexedPrimitiveUP, or do I have to add this call to
>WineD3D(based on the old implementation in D3D7 perhaps?).
Since vertex buffer support is a hack, I think you can use standard
wined3d drawing primitives for the moment.
You just have to save/restore matrices and change vertex buffer
implementation a bit.
Btw, thanks for undertaking this big task. :-)
More information about the wine-devel