mattdesl/lwjgl-basics — pull request #1 by matheus23 (2012-11-09 20:59:31+00:00)
Title: Added the view-matrix component in the SpriteBatch.

The SpriteBatch now includes a view-matrix, which is present as
- a "uniform mat4 viewMatrix" in the Default shader
- a "protected Matrix4f viewMatrix" in the SpriteBatch class

SpriteBatch has now the method "updateView()", which creates a FloatBuffer out of the Matrix4f viewMatrix, and then uniform with this buffer.

The VertexArrayExample was now changed too, and includes a rotation of the whole view now. That is done by translating into the rotation point, rotating and then translating back. Finally batch.updateView() is called.

Everything is documented with commentars, I hope you accept this Pull Request soon ;)