TINYGL: Started buffer code refactoring.
TINYGL: Refactored buffer code in c++ style and removed unused functions.