a single face

I know how to create cube’s and other complex objects out of vertices, but how can I just make a solid face? I’m wanting to create a floor to build my 3d world on top of…

TIA,
-Dogcow “moof!”
Visit The Underground

  1. 2 triangles using GL_TRIANGLES | GL_TRIANGLE_FAN | GL_TRIANGLE_STRIP
  2. GL_QUAD
  3. GL_POLYGON

these are a few options you can use

b

yeah… like he said… I dont know why you are having a problem when you are already creating each face in the cube… if you are using the glut thing then here how:

glRotatef(angleofFloor,1.0,0.0,0.0);

glBegin(GL_POLYGON);
glVertex3f(x,y,z);
glVertex3f(x,y-height,z);
glVertex3f(x+width,y-height,z);
glVertex3f(x+width,y,z);
glEnd();

yeah…duh.

On my way to class I realized how easy this is… “d’oh!”

Thanks,
-Dogcow “moof!”
Visit The Underground