PDA

View Full Version : How to display multiple viewports on a GL window?



Lunar
10-20-2000, 03:17 AM
Is there any solution to display multiple viewports on a GL window?
For an exampler, I'd like to make a racing game, which allows two player on just one PC. How can I render 2 different part of the same scene, which are specified by two different viewpoint?

Pauly
10-20-2000, 03:54 AM
Ummm, you just use glViewport to define where you want to draw stuff don't you?

Lucretia
10-20-2000, 04:44 AM
Yup, set eh viewport and don't forget to use glScissor() if you want clipping.

Luke.

Lunar
10-20-2000, 08:39 PM
Yeah, right! I've got it, many thanks http://www.opengl.org/discussion_boards/ubb/smile.gif