2D-OpenGL Primitives 2
Part A
- Draw outline of a square 30 pixels by 30 pixels (GL_LINE_LOOP).
- Draw outline of a triangle
- Draw outline of an equilateral triangle
Part B
- Draw a row of 50 small squares across the screen (see below)
- Draw 8 rows of 30 by 30 pixel squares to form a grid (see picture)
- Use GL_QUADS to draw your grid with solid boxes
- Finally, Draw alternate squares Blue and Red like a chess board.
Part C
- Draw a Pentagon
- Draw a Hexagon
- Draw an icosagon
- Draw a circle
- Draw a spiral
- Draw a sine wave