Results 1 to 2 of 2

Thread: glortho

  1. #1
    Guest

    glortho

    I'm really new to opengl. Could someone post a very simple but complete example that uses glortho to change the coordinate scale so that it matches the screen coordinates? Then do something trivial like draw a triangle?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: glortho

    Using glOrtho is explained on the FAQ on this website, have a look there, you will find tons of OpenGL tutorials on google including what you are looking for.

    If you are using Windows and aren't that familiar with the Win32 API I would suggest that you get GLUT for example to hide the ugly platform dependent stuff.

    Mikael

Similar Threads

  1. glOrtho
    By minidrive in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-27-2013, 09:44 PM
  2. glortho
    By giugio in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-13-2012, 12:38 AM
  3. glOrtho
    By Bobalandi in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-15-2008, 06:12 PM
  4. glOrtho
    By Woods in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-24-2005, 08:39 AM
  5. glOrtho
    By snowboy in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 06-30-2001, 12:33 PM

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