Thread: Gl_quads

  1. #1
    Registered User jimboob's Avatar
    Join Date
    Jun 2004
    Posts
    40

    Gl_quads

    Can someone please explain the GL_QUADS function to me... I'm real confused...
    TIA

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    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.

  3. #3
    Search for the OpenGL Reference Guide on google.

  4. #4
    Registered User jimboob's Avatar
    Join Date
    Jun 2004
    Posts
    40
    Cool thanks Shakti and Bludstayne.

  5. #5
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Quote Originally Posted by bludstayne
    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).

    http://www.gamedev.net/reference/count.asp?LinkID=993

  6. #6
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    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

  7. #7
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    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.

  8. #8
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Oh I didn't realize that it had reached the commerical phase. 56k modems are dirt cheap in the mean time

  9. #9
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    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.

  10. #10
    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

  11. #11
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    The different parameters for glBegin inlcude
    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
    And 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.

Popular pages Recent additions subscribe to a feed