Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

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

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2012
    Posts
    8

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

    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

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,104
    You use glOtho to define the coordinate mapping and glViewport to set the part of the window to draw into (usually the whole window)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •