Explicit Or any attributes that your vertex support have. Then when you create them you use a stride that matches all the Attributes that your vertex have. For example if you only have postion and normal. You can do something like Model.AttributeType = POSITION|NORMAL. and when you create your memory to hold the vertices you can look at the attributes you have in AttributeType and create a stride that matches that type. For example you know position type would 12 bytes and Normal is also 12 bytes as well in that case your stride would be 24 bytes.
BornToCodeMember Since 17 Apr 2004
Offline Last Active Today, 01:23 AM