I have two sets of point cloud data. One set of are the vertices for a triangular mesh. The other are a point cloud which was not triangulated.
I use the same VBO to store both the vertices of the triangles and the vertices of the point cloud.
To display them
glDrawElements(GL_POINTS, (uiAllThePoints- 1), GL_UNSIGNED_INT, 0); glDrawElements(GL_TRIANGLES, (uiTriangleVertices- 1), GL_UNSIGNED_INT, 0)
I draw the triangles and all the points, the vertices of the triangles and the vertices of the untriangulated point cloud. I just want to display the triangles and the vertices of the untriangulated point cloud. So I am being inefficient by displaying the triangle vertices too.
Is this the only way to do this? Anyhelp gratefully appreciated.