31 Aug
2010
31 Aug
'10
3:58 p.m.
On 31 August 2010 14:47, misha680 <misha680(a)gmail.com> wrote:
As you can see by the tests added, colors and normals have an ordering that is specifically constrained within the FVF.
Well yes, but I'd say that ordering should apply to *any* FVF element, not just colors and normals. E.g., point size before position or texture before color should be just as untranslatable.
To clarify, by saying that the booleans are redundant, do you mean to say that, say, if I have a normal element, I should iterate back through all declaration elements that have already been processed and check for a prior color element, and then return D3DERR_INVALIDCALL?
No, but you can check "*fvf & D3DFVF_NORMAL" to see if you already have a normal.