m***@gmail.com
2008-01-30 07:24:54 UTC
Hi,
is it possible to render using DrawUserPrimitives starting from non 0
array index?
for example, below code renders all data from array vdata:
CustomVertex.PositionNormalColored vdata = new
CustomVertex.PositionNormalColored[30];
dev.DrawUserPrimitives(PrimitiveType.TriangleList, vdata.Length,
vdata);
but suppose I would like to render only second half:
CustomVertex.PositionNormalColored vdata = new
CustomVertex.PositionNormalColored[30];
dev.DrawUserPrimitives(PrimitiveType.TriangleList, vdata.Length/2,
&vdata[15]); //<- Wrong!
How to refere to second array half without creating new array?
Martin
is it possible to render using DrawUserPrimitives starting from non 0
array index?
for example, below code renders all data from array vdata:
CustomVertex.PositionNormalColored vdata = new
CustomVertex.PositionNormalColored[30];
dev.DrawUserPrimitives(PrimitiveType.TriangleList, vdata.Length,
vdata);
but suppose I would like to render only second half:
CustomVertex.PositionNormalColored vdata = new
CustomVertex.PositionNormalColored[30];
dev.DrawUserPrimitives(PrimitiveType.TriangleList, vdata.Length/2,
&vdata[15]); //<- Wrong!
How to refere to second array half without creating new array?
Martin