I wrote a header file to import obj model files.
it works good.Click image for larger version. 

Name:	无标题.jpg 
Views:	391 
Size:	7.5 KB 
ID:	1066
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.