SurGL
04-18-2001, 07:51 PM
I understand that
glGEtIntegerv(GL_VIEWPORT,viewport) will
return the current viewport cordinates.
Question: What will happen if I mention more than one viewports while drawing.
say,
Setviewport ( left half)
draw object 1
Setviewport ( Right half)
draw object 2
Now, if I want to select objects in right half screen, Shouldn't I get the Viewport of right half.
How to get it?
Thanks in advance
glGEtIntegerv(GL_VIEWPORT,viewport) will
return the current viewport cordinates.
Question: What will happen if I mention more than one viewports while drawing.
say,
Setviewport ( left half)
draw object 1
Setviewport ( Right half)
draw object 2
Now, if I want to select objects in right half screen, Shouldn't I get the Viewport of right half.
How to get it?
Thanks in advance