d3dx9_36: Implement D3DXCreateMesh and initial ID3DXMesh methods. (try 3)

Henri Verbeet hverbeet at gmail.com
Thu Sep 16 03:25:06 CDT 2010

On 16 September 2010 02:23, misha680 <misha680 at gmail.com> wrote:
> Could you possible clarify your statement
> "though I wonder if implementing DrawSubset() isn't going to require
> creating a
> vertex declaration anyway."
> My understanding from
> http://msdn.microsoft.com/en-us/library/bb205736%28v=VS.85%29.aspx
> and
> http://www.xmission.com/~legalize/book/download/19-D3DX%20Mesh%20Objects.pdf
> is that DrawSubset will simply draw a subset of the triangles in a mesh...
Yeah, based on the attributes in the attribute table. But to draw
something the device needs to know the vertex buffer layout. If
D3DXFVFFromDeclarator() is allowed to fail for declarations passed to
D3DXCreateMesh(), you'll have to pass the device a vertex declaration
to do that.

More information about the wine-devel mailing list