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

2010-09-16 Thread Henri Verbeet
On 16 September 2010 14:40, Misha Koshelev wrote: > 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? > No, what I'm saying is that I strongly suspect that in orde

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

2010-09-16 Thread Misha Koshelev
On Thu, 2010-09-16 at 10:25 +0200, Henri Verbeet wrote: > On 16 September 2010 02:23, misha680 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

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

2010-09-16 Thread Henri Verbeet
On 16 September 2010 02:23, misha680 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 >

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

2010-09-15 Thread misha680
Henri Verbeet wrote: > > On 15 September 2010 01:55, Misha Koshelev wrote: >> +while (count < MAX_FVF_DECL_SIZE && (count == 0 || >> declaration[count-1].Stream != 0xFF)) >> +{ >> +count++; >> +} > ...and similarly you'd want to use D3DXGetDeclLength() here, though I > wonde

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

2010-09-15 Thread Henri Verbeet
On 15 September 2010 01:55, Misha Koshelev wrote: > +while (count < MAX_FVF_DECL_SIZE && (count == 0 || > declaration[count-1].Stream != 0xFF)) > +{ > +count++; > +} ...and similarly you'd want to use D3DXGetDeclLength() here, though I wonder if implementing DrawSubset() isn't