These are the two questions I have encountered so far:
- when I wanted to draw a square using:
glBegin(GL_POLYGON); or glBegin(GL_QUADS);
glVertex3f(-5.0, -5.0, 0.0);
glVertex3f(5.0, -5.0, 0.0);
glVertex3f(-5.0, 5.0, 0.0);
glVertex3f(5.0, 5.0, 0.0);
the output is not a square but a polygon. Why?
- I got myself the Redbook and most of the examples does not require function protoype. I cut and pasted and compiled it without error but when I tried to write out 1 without function prototype, my compiler give me errors. Why is that so?
Thanks for the reply!
[This message has been edited by EeeK (edited 07-12-2000).]