Wednesday, March 28, 2012

Part 6 : Drawing!


This post is about one little thing left do to after all this code. Draw the damn cube! Everything we've done with VAOs and VBOs will make our task considerably easier.

And the code:



You might think that looping through our uniformArray is not very efficient, but when you have 10 uniforms to manage, this will make everything a lot easier.


One last thing! Cleanup:



No comments: