mesa: Rename ElementArrayBufferObj to IndexBufferObj.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 2 Feb 2014 03:46:45 +0000 (19:46 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Feb 2014 08:53:11 +0000 (00:53 -0800)
commite1b1f2a687c219021f65219df59f412bc86daadd
tree099b769f2306382a38177a61b07236eea9d66973
parent0354e50798d9f199c3a47b71e8c0a284bba5e8e6
mesa: Rename ElementArrayBufferObj to IndexBufferObj.

DirectX and most hardware documentation use the term "Index Buffer" to
refer to a buffer containing indexes into arrays of vertex data, which
allows random access to vertex data, rather than sequential access.

OpenGL uses a different term for this concept: "Element Array Buffer".
However, "Index Buffer" has become much more widespread.  A quick
Google search shows 29,300 hits for "Element Array Buffer" vs.
82,300 hits for "Index Buffer."

Arguably, "Index Buffer" is clearer: an "element of an array" (or list)
usually refers to an actual item stored in the array, not the index used
to refer to it.

The terminology is also already used in Mesa: some VBO module code for
dealing with ElementArrayBufferObj names local variables "ib".

Completely generated by:
$ find . -type f -print0 | xargs -0 sed -i \
  's/ElementArrayBufferObj/IndexBufferObj/g'

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/api_arrayelt.c
src/mesa/main/api_validate.c
src/mesa/main/arrayobj.c
src/mesa/main/attrib.c
src/mesa/main/bufferobj.c
src/mesa/main/get.c
src/mesa/main/mtypes.h
src/mesa/vbo/vbo_exec_array.c
src/mesa/vbo/vbo_save_api.c