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 3 of 3

Thread: How can i draw a star using glut and basic glVertex function?

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2010
    Posts
    20

    Question How can i draw a star using glut and basic glVertex function?

    How can i draw a star using glut and basic glVertex function?
    Can anyone post example code for this and the complete command to compile this program?

  2. #2
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,169
    Nobody is going to do your homework assignment for you.
    I suggest you plot the point on graph paper and use glVertex3f to draw the polygon.
    It's very simple and there are plenty of beginner tutorial sites to get you started. Don't be lazy and do your research!

  3. #3
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    5
    Yes, draw it on paper first (remember the axis representation). Use triangles and then use glVertex (MAN) to draw the points!

Posting Permissions

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