public VertexFormat GetVertexFormat(uint index) { VertexFormat vtxFmt = new VertexFormat(); vtxFmt.Load(_dataCopy, _vertexFormatsOffset + (index * VertexFormat.Size)); return(vtxFmt); }
public List <VertexFormat> GetAllVertexFormats() { var allFormats = new List <VertexFormat>(); VertexFormat vFormat; uint dataOffset = _vertexFormatsOffset; do { vFormat = new VertexFormat(); vFormat.Load(_dataCopy, dataOffset); allFormats.Add(vFormat); dataOffset += VertexFormat.Size; } while (vFormat.ArrayType != ArrayTypes.NullAttr); return(allFormats); }