Results 1 to 6 of 6

Thread: How to draw circle use openGL?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    19

    How to draw circle use openGL?

    How to draw circle use openGL and then the circle move from middle top and down? use c++

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: How to draw circle use openGL?

    Take a look at the Lessons here: http://nehe.gamedev.net/

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    19

    Re: How to draw circle use openGL?

    but that website doesn't have circle movement from top to down sample...

  4. #4
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Re: How to draw circle use openGL?

    if you can draw a circle, you can easily move it like you move any other object - pushMatrix(), transform / rotate it into the right spot, draw the circle, then popMatrix();
    sql_lall

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    19

    Re: How to draw circle use openGL?

    but use what to display? for example squre use glRectf(x,y) how about circle?

  6. #6
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Re: How to draw circle use openGL?

    You can either do it manually (google "openGL circle" to find code)
    *or* a good way is to use quadrics:
    http://jerome.jouvie.free.fr/OpenGl/.../Tutorial7.php
    sql_lall

Posting Permissions

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



Click Here to Expand Forum to Full Width