I am a beginner in OpenGL. I want to create two panels in a window. Each will have different view for a particular object. Could any one suggest me the foolowing:

1.How to create two panels in a window;
2. Which function will enable me to view an object from two different directions? I think I need to set two views for camera. Please calrify it.

Thanks.