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

Misha Koshelev misha680 at gmail.com
Thu Sep 16 07:40:02 CDT 2010


On Thu, 2010-09-16 at 10:25 +0200, Henri Verbeet wrote:
> 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.

Thank you. 

So, just to clarify to make sure my understanding is complete, what you
are saying is for DrawSubset(), we will need to create an FVF declarator
from a non-FVF declarator, correct?

Any pointers on this (re how to do this) much appreciated. I will look
later today.

Thank you
Misha




More information about the wine-devel mailing list