mattdesl/lwjgl-basics — pull request #2 by matheus23 (2012-11-10 21:20:16+00:00)
Title: Pull Request: The pre-multiplied projViewMatrix in SpriteBatch.

I tried to improve the version of my last Pull Request, as you suggested:

I removed the "updateView()" method in SpriteBatch, and changed the "updateProjection()" method into "updateMatrices()".

I also added the utility method "storeUniformMat4(String uniform, Matrix4f mat, boolean transposed)" to ShaderProgram. This method stores a Matrix4f in the given uniform, either transposed or left as-is. This method also throws a "IllegalStateException" if "getUniformLocation()" returns -1.

Finally I changed the VertexArrayExample and everything worked perfectly.

Hope you take this one as an improvement, and I hope I was helpful :)