Can someone please explain the GL_QUADS function to me... I'm real confused...
TIA
Can someone please explain the GL_QUADS function to me... I'm real confused...
TIA
When you call the function glBegin with GL_QUADS as an argument you tell openGL all the coordinates in here should be combined in quads. OpenGL will automaticly combine the first 4 to one quad, the second 4 to the second quad and so on. Another argument is GL_TRIANGLES. This works the same way but it combines 3 coordinates you send to a triangle instead.
Search for the OpenGL Reference Guide on google.
If you don't care to buy a copy, here is an older version in PDF format. Don't be surprised if the download takes about an hour (7-8mb).Originally Posted by bludstayne
http://www.gamedev.net/reference/count.asp?LinkID=993
Man if it takes you an hour to download 7.9 mb I feel for you Frobozz. Its taking me about 45 seconds to download it
I currently have a 28.8k connection. However as the local power company is preparing BPL (broadband over power lines) I should get a fairly fast connection soon. Maybe within a month.
Oh I didn't realize that it had reached the commerical phase. 56k modems are dirt cheap in the mean time
Actually the connection I get is not due to my modem (which is a software-based 56k) but due to the server (my dad's work provides access for free).
It is going to be interesting to find a decent firewall for when I get the BPL. I'll probably shoot for something from Symantec if they make one.
Yeah, I feel for you. I use to have a 56k modem, but my ISP only offered like 19k. I got 1000/256k cable now, so I'm happy
The different parameters for glBegin inlcudeAnd each parameter, affects it differntly. Quads will take every pair of 4 and and then make one polygon. If not an even pair, it ignores the odd pair.Code:GL_POINTS individual points GL_LINES pairs of vertices interpreted as individual line segments GL_LINE_STRIP series of connected line segments GL_LINE_LOOP same as above, with a segment added between last and first vertices GL_TRIANGLES triples of vertices interpreted as triangles GL_TRIANGLE_STRIP linked strip of triangles GL_TRIANGLE_FAN linked fan of triangles GL_QUADS quadruples of vertices interpreted as four-sided polygons GL_QUAD_STRIP linked strip of quadrilaterals GL_POLYGON boundary of a simple, convex polygon