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

Name:	无标题.jpg 
Views:	132 
Size:	7.5 KB 
ID:	1066
I'd like to share the header files with you.
http://codepad.org/ySNEa8KU

the picture was rendered by this code.
http://codepad.org/0eSlJyxs

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.