Results 1 to 3 of 3

Thread: 2D graphics in OGL with Glut and VC++6

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2003
    Posts
    2

    2D graphics in OGL with Glut and VC++6

    Hi
    I'm trying to code an app which uses 2D graphics functions. I've coded a couple of 3D apps, but now I only want to use 2D functions. Is there a way to easily draw lines, circles etc. in 2D, in OGL? I'm trying to code a fractal screensave app, and I only need 2D graphics... I've started using glDrawPixels, but the whole glRasterPos thing is irritating me. I want to be able to specify a 2D screen coordinate in pixels, eg. 100,100 and raw a dot there. Is this at all possible?

    Thanks for for any help,
    Malan Joubert

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: 2D graphics in OGL with Glut and VC++6

    glortho2d

    glbegin(GL_POINTS);
    glvertex2d(100, 100);
    glend();

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2003
    Posts
    2

    Re: 2D graphics in OGL with Glut and VC++6

    Did you mean gluOrtho2d? I found some stuff on that but not glOrtho2D?

    Thanx,
    Malan

Similar Threads

  1. Raster Graphics and Vector Graphics
    By Mukund in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 02-08-2011, 05:40 PM
  2. Replies: 6
    Last Post: 11-01-2004, 08:26 PM
  3. 2D graphics overlay over 3D Graphics
    By nisar in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 07-10-2002, 11:53 PM
  4. Subwindows in GLUT - New section available in the GLUT tutorial
    By Antonio in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-13-2000, 10:02 AM
  5. Combine 2D and 3D graphics into one graphics
    By wenli in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-18-2000, 03:37 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