Mitchell <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

> I followed the instructions found on this site and got it working for
> the most part. It renders almost exactly like my win32 + OpenGL app
> except the viewport appears to be wrong. Instead of drawing to the
> entire window, there is always white space on the right on the screen.
> I noticed (by drawing a grid) that it seems to be set to an exact
> square instead of the size I gave to both the constructor of the
> Fl_Gl_Window child class and the glOrtho/gluOrtho2D function. 

In your draw(), maintain the previous size and if the current size is 
different, then simply reset your viewport (glOrtho()...).  This will 
require you to move that code from main() to draw() and guard it with a 
flag to ensure it doesn't get reset everytime draw() gets called, but it's 
not hard.

Cheers!

-- 
Paxton Sanders
[EMAIL PROTECTED]
_______________________________________________
fltk-opengl mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-opengl

Reply via email to