On 16 September 2010 02:23, misha680 <misha...@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.


Reply via email to