PDA

View Full Version : glViewport



gurkama
02-14-2005, 06:33 AM
Hi

I wanted to know what should be the behavior of openGL, when defining the viewport as larger than the screen resolution.
Say I'm using screenres of 800x600, but in my display func I call glViewport(0,0,1024,1024), what would be the result - would I see the whole scene?
As I understand it, it's like putting a 10x15cm photo page, into a printer that outputs 20x30cm photos. So I would see only a part of the scene - am I right? :confused:

Thanks

Bob
02-14-2005, 07:27 AM
Yes, you would only see a part of the viewport; the lower left 800x600 part in your example.

gurkama
02-14-2005, 10:46 PM
Thanks :)