libgdx/libgdx — pull request #502 by xoppa (2013-07-07 16:37:30+00:00)
Title: Mesh cache attribute locations

- VertexAttribute: add getKey method which returns an unique number which can be used to identify the attribute (its bsf(usage)<<8|unit, although its not intended to have a useful meaning other than identifying).
- VertexData: allow to specify an IntIntMap for cached attribute (based on getKey) locations for bind/unbind.
- VA/VBO: Implement those methods, also some small optimizations.
- Mesh: Add the IntIntMap to bind/unbind, also allow to override autoBind in the render method to make it easier for a Shader to cache meshes.