2D-OpenGL Primitives 2
- Copy the 2D OpenGL template from here.
Part A
- Draw the outline of a square 30 pixels by 30 pixels.
- Draw the outline of a triangle
- Draw the outline of an equilateral triangle
Part B
- Draw a row of 50 small squares accross 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