C++:Cuboids Tutorial

From Progzoo
Jump to: navigation, search

Single Cube

A cuboid has 6 faces. You can assemble these into a structure.


[Font] [Default] [Show] [Resize] [History] [Profile]

Cube Array

GlutCubeArray.png

Change the routine display to draw a number of cubes. Try to draw four cubes in an array as shown:


[Font] [Default] [Show] [Resize] [History] [Profile]

Cube Three by Three by Three Array

GlutCube3x3x3Array.png

Change the routine display to draw 9 cubes as shown. Try to draw four cubes in an array as shown:


[Font] [Default] [Show] [Resize] [History] [Profile]

Cuboids

GlutCubeMonolith.png

Change the routines drawBox and display to draw a cuboid with width, height and depth specified. The box shown is (4.5,2.0,0.5)


[Font] [Default] [Show] [Resize] [History] [Profile]

Stonehenge

GlutHenge.png

Change the routine display to draw a trilithon.


[Font] [Default] [Show] [Resize] [History] [Profile]