Description
Suppose
that we want to create a simple cube object
cube.initialise();
We
also need a way of displaying the cube
cube.render();
We
can set properties as part of the class, for example
cube.translate(1.0,
0.0, 0.0);
cube.rotate(theta,
1.0, 0.0, 0.0);
cube.setcolor(1.0,
0.0, 0.0);