Refactoring rendering pipeline to use VBO's