Another Beginer Question- How to Fit a Curve to Window Dimension


Being a beginner I have a silly question for experts. I have a window of size 500 by 500 and want to display a Nurbs Curve in Range of x-range = 0 to 10 y-range = 0 to 8. Now my basic question in how to fit the curve to graphics window. I am using fortan 95, with help of command provided I can get the equivalent command.



You use glOtho to define the coordinate mapping and glViewport to set the part of the window to draw into (usually the whole window)