PDA

View Full Version : glRect()



caophong
04-21-2001, 10:19 AM
how can i create a rectangle using glRect() in the 3d image? that is i wanted to draw a rectangle on the floor inside 3d house.

i try glRect( 30, 0, 0, 35, 0, 0 );

prameters are x1, y1, z1, x2, y2, z2;

Leo
04-27-2001, 04:24 AM
use

glBegin(GL_QUADS)

vertex....

glEnd();