PDA

View Full Version : problem resizing viewport



Spikeham
02-05-2001, 12:03 PM
Here's the problem: I'm implementing an OpenGL view running on Win2K. It works great except that the OpenGL viewport will only go up to a certain size, about height=350, width=500. Beyond this size, the background color still fills the window's client area, but the objects in the scene are clipped to this max size on the bottom and right.

The code does standard stuff in the OnSize event, i.e. it calls glViewport(0,0,x,y) with the window size params. Also it calls glFrustum to set a field of view of 45 degrees and an aspect ratio equal to that of the window.

Anyone seen this problem before? Any tips appreciated. Thanks!

Leyder Dylan
02-05-2001, 01:15 PM
Hi,

I'm using Win2k. Send me the code and I'll tell you if that works. Ok ?


=========================
Leyder Dylan
Site : http://slug-production.ibelgique.col
E-Mail : dylan.leyder@ibelgique.com

Coconut
02-05-2001, 01:24 PM
See http://support.microsoft.com/support/kb/articles/Q272/2/22.ASP

Spikeham
02-05-2001, 01:35 PM
Originally posted by Coconut:
See http://support.microsoft.com/support/kb/articles/Q272/2/22.ASP

That's the problem!! Thanks!