@Amr
Ok i have looked a bit into stencil buffer but due to lcak of time i have shelved it for now but will read + learn more in due time.
So far using the native way of rendering polygon using triangles i have managed to get things further, or shall i say i'm almost there.
Now my polygon shape isn't rendered completely when compared to image shown in my original post at the top and i can't seem to figure it out. why...
So far what iv achieved is in image below:
[attachment=32016:Improved_shapeRender.PNG]
Points used to render:
[attachment=32017:Render_Points_values.PNG]
From the image above it seems some points are not being rendered.
AS to what i'm doing:
- Setting the primitive topology to be TriangleStrip
- Calling draw with no of points => draw(pointscount)
If i render the points using a pointlist they all render correctly as expected
But can't seem to figure out as what i'm doing wrong if i try to render they as triangle strip.
Any suggestions ?