PDA

View Full Version : 3d rectangles



aap9
10-19-2001, 04:49 AM
I can see how to draw 3d cubes and spheres using GLUT.

But is there an easy way to draw a 3d rectangle??? maybe using glut or glu....

Without having to draw the thing from scratch (specifying each vertices etc).

any help would be appreciated!

Coconut
10-19-2001, 04:53 AM
Ask yourself: how you want to describe a triangle simplier than specifying three vertices?

Leyder Dylan
10-19-2001, 07:19 AM
With GLUT, there's a function like this for making a cube :

glutSolidCube(float Height);

Looks in the help, there's perhaps a
glutSolidRectangle(float Height, float Width)

Gavin
10-21-2001, 11:49 PM
You can always use glscale with a cube to get your rectangle