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,117
    You use glOtho to define the coordinate mapping and glViewport to set the part of the window to draw into (usually the whole window)

Similar Threads

  1. Replies: 8
    Last Post: 12-17-2012, 01:47 AM
  2. Replies: 16
    Last Post: 04-21-2005, 05:59 PM
  3. beginer
    By Roma in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-02-2003, 07:56 AM
  4. Some Basic OpenGL question for a beginer
    By Hobbes7714 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-07-2002, 03:03 PM
  5. Beginer question..
    By imported_Erik in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-09-2001, 08:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean