How to draw multiple objects.
I wrote a header file to import obj model files.
it works good.
I'd like to share the header files with you.
the picture was rendered by this code.
But I only know how to render one object. I have no idea with rendering two or more objects.
I tried.http://codepad.org/bsdOJdhm//But It crashed.
Could you give a simple example which uses glBuffer,glVertexAttribPointer&glDrawElement to draw multiple objects?
I would appreciate alot for your help.