With basis arrays, a cobweb is represented by two abstracted arrays, one arrangement captivation the vertices, and addition captivation sets of three indices into that arrangement which ascertain a triangle. The cartoon arrangement processes the vertices aboriginal and renders the triangles afterwards, application the basis sets alive on the adapted data. In OpenGL, this is accurate by the glDrawElements() archaic if application Vertex Buffer Object (VBO).
With this method, any approximate set of triangles administration any approximate amount of vertices can be stored, manipulated, and anesthetized to the cartoon API, after any agent processing.
No comments:
Post a Comment