What is the difference between glDrawArrays() and glDrawElements()?
-
A
glDrawArrays uses indices; glDrawElements does not
-
B
glDrawElements uses an index buffer to reuse vertices; glDrawArrays reads vertices sequentially
-
C
glDrawArrays is faster on all hardware; glDrawElements is for legacy use
-
D
glDrawElements draws only points; glDrawArrays draws triangles