2D-OpenGL Primitives 2

 

Part A

  1. Draw the outline of a square 30 pixels by 30 pixels.
  2. Draw the outline of a triangle
  3. Draw the outline of an equilateral triangle

Part B

  1. Draw a row of 50 small squares accross the screen (see below)
  2. Draw 8 rows of 30 by 30 pixel squares to form a grid (see picture)
  3. Use GL_QUADS to draw your grid with solid boxes
  4. Finally, Draw alternate squares Blue and Red like a chess board.

 

Part C

  1. Draw a Pentagon
  2. Draw a Hexagon
  3. Draw an icosagon
  4. Draw a circle
  5. Draw a spiral
    Spiral
  6. Draw a sine wave
    Sine Wave