PDA

View Full Version : Another Beginer Question- How to Fit a Curve to Window Dimension



apoorv
12-01-2012, 03:17 AM
Hi

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.

Regards

Apoorv

tonyo_au
12-02-2012, 03:09 AM
You use glOtho to define the coordinate mapping and glViewport to set the part of the window to draw into (usually the whole window)