I read the openGL specification, trying to find the answer to this question, with no luck. I am trying to find out if OpenGL guarantees that drawing calls, such as GLDrawElements or GLDrawArrays, will draw elements in exactly the order in which they appear in VBO, or if they are free to process fragments of these primitives in any order.
For example, if I have a vertex buffer with 30 vertices representing 10 triangles, each with the same coordinates. Will it always be that the triangle corresponding to the vertices 0, 1 and 2 will be displayed first (and, therefore, below); and the triangle corresponding to the vertices 28, 29, 30 should always be the last (and, therefore, from above)?
opengl
SirLambda
source share