Updated renderer code

* gets index buffer from object
* gets vertex buffer from object